Java Code Examples for org.chromium.base.PathUtils#setPrivateDataDirectorySuffix()
The following examples show how to use
org.chromium.base.PathUtils#setPrivateDataDirectorySuffix() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ChromeBrowserInitializer.java From delion with Apache License 2.0 | 6 votes |
private void preInflationStartup() { ThreadUtils.assertOnUiThread(); if (mPreInflationStartupComplete) return; PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX, mApplication); // Ensure critical files are available, so they aren't blocked on the file-system // behind long-running accesses in next phase. // Don't do any large file access here! ContentApplication.initCommandLine(mApplication); waitForDebuggerIfNeeded(); ChromeStrictMode.configureStrictMode(); if (CommandLine.getInstance().hasSwitch(ChromeSwitches.ENABLE_WEBAPK)) { ChromeWebApkHost.init(); } warmUpSharedPrefs(); DeviceUtils.addDeviceSpecificUserAgentSwitch(mApplication); ApplicationStatus.registerStateListenerForAllActivities( createActivityStateListener()); mPreInflationStartupComplete = true; }
Example 2
Source File: ChromeBrowserInitializer.java From AndroidChromium with Apache License 2.0 | 6 votes |
private void preInflationStartup() { ThreadUtils.assertOnUiThread(); if (mPreInflationStartupComplete) return; PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); // Ensure critical files are available, so they aren't blocked on the file-system // behind long-running accesses in next phase. // Don't do any large file access here! ContentApplication.initCommandLine(mApplication); waitForDebuggerIfNeeded(); ChromeStrictMode.configureStrictMode(); ChromeWebApkHost.init(); warmUpSharedPrefs(); DeviceUtils.addDeviceSpecificUserAgentSwitch(mApplication); ApplicationStatus.registerStateListenerForAllActivities( createActivityStateListener()); mPreInflationStartupComplete = true; }
Example 3
Source File: ChromeBrowserInitializer.java From 365browser with Apache License 2.0 | 6 votes |
private void preInflationStartup() { ThreadUtils.assertOnUiThread(); if (mPreInflationStartupComplete) return; PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); // Ensure critical files are available, so they aren't blocked on the file-system // behind long-running accesses in next phase. // Don't do any large file access here! ContentApplication.initCommandLine(mApplication); waitForDebuggerIfNeeded(); ChromeStrictMode.configureStrictMode(); ChromeWebApkHost.init(); warmUpSharedPrefs(); DeviceUtils.addDeviceSpecificUserAgentSwitch(mApplication); ApplicationStatus.registerStateListenerForAllActivities( createActivityStateListener()); mPreInflationStartupComplete = true; }
Example 4
Source File: ChromiumTestShellApplication.java From android-chromium with BSD 2-Clause "Simplified" License | 5 votes |
@Override public void onCreate() { // We want to do this at the earliest possible point in startup. UmaUtils.recordMainEntryPointTime(); super.onCreate(); ResourceExtractor.setMandatoryPaksToExtract(CHROME_MANDATORY_PAKS); PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); LibraryLoader.setLibraryToLoad(LIBRARIES); mObservers = new ArrayList<ChromiumTestShellApplicationObserver>(); }
Example 5
Source File: ChromiumTestShellApplication.java From android-chromium with BSD 2-Clause "Simplified" License | 5 votes |
@Override public void onCreate() { // We want to do this at the earliest possible point in startup. UmaUtils.recordMainEntryPointTime(); super.onCreate(); ResourceExtractor.setMandatoryPaksToExtract(CHROME_MANDATORY_PAKS); PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); LibraryLoader.setLibraryToLoad(LIBRARIES); mObservers = new ArrayList<ChromiumTestShellApplicationObserver>(); }
Example 6
Source File: AwBrowserProcess.java From android-chromium with BSD 2-Clause "Simplified" License | 5 votes |
/** * Loads the native library, and performs basic static construction of objects needed * to run webview in this process. Does not create threads; safe to call from zygote. * Note: it is up to the caller to ensure this is only called once. */ public static void loadLibrary() { PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); try { LibraryLoader.loadNow(); } catch (ProcessInitException e) { throw new RuntimeException("Cannot load WebView", e); } }
Example 7
Source File: ChromiumTestShellApplication.java From android-chromium with BSD 2-Clause "Simplified" License | 5 votes |
@Override public void onCreate() { // We want to do this at the earliest possible point in startup. UmaUtils.recordMainEntryPointTime(); super.onCreate(); ResourceExtractor.setMandatoryPaksToExtract(CHROME_MANDATORY_PAKS); PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); LibraryLoader.setLibraryToLoad(LIBRARIES); mObservers = new ArrayList<ChromiumTestShellApplicationObserver>(); }
Example 8
Source File: ChromiumTestShellApplication.java From android-chromium with BSD 2-Clause "Simplified" License | 5 votes |
@Override public void onCreate() { // We want to do this at the earliest possible point in startup. UmaUtils.recordMainEntryPointTime(); super.onCreate(); ResourceExtractor.setMandatoryPaksToExtract(CHROME_MANDATORY_PAKS); PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); LibraryLoader.setLibraryToLoad(LIBRARIES); mObservers = new ArrayList<ChromiumTestShellApplicationObserver>(); }
Example 9
Source File: AwBrowserProcess.java From android-chromium with BSD 2-Clause "Simplified" License | 5 votes |
/** * Loads the native library, and performs basic static construction of objects needed * to run webview in this process. Does not create threads; safe to call from zygote. * Note: it is up to the caller to ensure this is only called once. */ public static void loadLibrary() { PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); try { LibraryLoader.loadNow(); } catch (ProcessInitException e) { throw new RuntimeException("Cannot load WebView", e); } }
Example 10
Source File: ContentShellApplication.java From android-chromium with BSD 2-Clause "Simplified" License | 4 votes |
public static void initializeApplicationParameters() { ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAK_FILES); PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); LibraryLoader.setLibraryToLoad(LIBRARIES); }
Example 11
Source File: ContentShellApplication.java From android-chromium with BSD 2-Clause "Simplified" License | 4 votes |
public static void initializeApplicationParameters() { ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAK_FILES); PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); LibraryLoader.setLibraryToLoad(LIBRARIES); }
Example 12
Source File: ContentShellApplication.java From android-chromium with BSD 2-Clause "Simplified" License | 4 votes |
public static void initializeApplicationParameters() { ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAK_FILES); PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); LibraryLoader.setLibraryToLoad(LIBRARIES); }
Example 13
Source File: ContentShellApplication.java From android-chromium with BSD 2-Clause "Simplified" License | 4 votes |
public static void initializeApplicationParameters() { ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAK_FILES); PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); LibraryLoader.setLibraryToLoad(LIBRARIES); }