org.chromium.chrome.browser.cookies.CookiesFetcher Java Examples
The following examples show how to use
org.chromium.chrome.browser.cookies.CookiesFetcher.
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: ChromeTabbedActivity.java From AndroidChromium with Apache License 2.0 | 6 votes |
@Override public void onResumeWithNative() { super.onResumeWithNative(); CookiesFetcher.restoreCookies(this); StartupMetrics.getInstance().recordHistogram(false); if (FeatureUtilities.isTabModelMergingEnabled()) { boolean inMultiWindowMode = MultiWindowUtils.getInstance().isInMultiWindowMode(this); // Merge tabs if the activity is not in multi-window mode and mMergeTabsOnResume is true // or unset because the activity is just starting or was destroyed. if (!inMultiWindowMode && (mMergeTabsOnResume == null || mMergeTabsOnResume)) { maybeMergeTabs(); } mMergeTabsOnResume = false; } mVrShellDelegate.maybeResumeVR(); mLocaleManager.setSnackbarManager(getSnackbarManager()); mLocaleManager.startObservingPhoneChanges(); }
Example #2
Source File: Profile.java From delion with Apache License 2.0 | 5 votes |
@CalledByNative private void onNativeDestroyed() { mNativeProfileAndroid = 0; if (mIsOffTheRecord) { Context context = ContextUtils.getApplicationContext(); CookiesFetcher.deleteCookiesIfNecessary(context); } }
Example #3
Source File: ChromeTabbedActivity.java From AndroidChromium with Apache License 2.0 | 5 votes |
@Override public void onPauseWithNative() { mTabModelSelectorImpl.commitAllTabClosures(); CookiesFetcher.persistCookies(this); mVrShellDelegate.maybePauseVR(); mLocaleManager.setSnackbarManager(null); mLocaleManager.stopObservingPhoneChanges(); super.onPauseWithNative(); }
Example #4
Source File: Profile.java From AndroidChromium with Apache License 2.0 | 5 votes |
@CalledByNative private void onNativeDestroyed() { mNativeProfileAndroid = 0; if (mIsOffTheRecord) { Context context = ContextUtils.getApplicationContext(); CookiesFetcher.deleteCookiesIfNecessary(context); } }
Example #5
Source File: ChromeTabbedActivity.java From 365browser with Apache License 2.0 | 5 votes |
@Override public void onResumeWithNative() { super.onResumeWithNative(); if (shouldDestroyIncognitoProfile()) { Profile.getLastUsedProfile().getOffTheRecordProfile().destroyWhenAppropriate(); } else { CookiesFetcher.restoreCookies(this); } StartupMetrics.getInstance().recordHistogram(false); if (FeatureUtilities.isTabModelMergingEnabled()) { boolean inMultiWindowMode = MultiWindowUtils.getInstance().isInMultiWindowMode(this); // Merge tabs if the activity is not in multi-window mode and mMergeTabsOnResume is true // or unset because the activity is just starting or was destroyed. if (!inMultiWindowMode && (mMergeTabsOnResume == null || mMergeTabsOnResume)) { maybeMergeTabs(); } mMergeTabsOnResume = false; } mLocaleManager.setSnackbarManager(getSnackbarManager()); mLocaleManager.startObservingPhoneChanges(); if (isWarmOnResume()) { SuggestionsEventReporterBridge.onActivityWarmResumed(); } else { SuggestionsEventReporterBridge.onColdStart(); } }
Example #6
Source File: ChromeTabbedActivity.java From 365browser with Apache License 2.0 | 5 votes |
@Override public void onPauseWithNative() { mTabModelSelectorImpl.commitAllTabClosures(); CookiesFetcher.persistCookies(this); mLocaleManager.setSnackbarManager(null); mLocaleManager.stopObservingPhoneChanges(); super.onPauseWithNative(); }
Example #7
Source File: Profile.java From 365browser with Apache License 2.0 | 5 votes |
@CalledByNative private void onNativeDestroyed() { mNativeProfileAndroid = 0; if (mIsOffTheRecord) { Context context = ContextUtils.getApplicationContext(); CookiesFetcher.deleteCookiesIfNecessary(context); } }
Example #8
Source File: ChromeTabbedActivity.java From delion with Apache License 2.0 | 4 votes |
@Override public void onResumeWithNative() { super.onResumeWithNative(); CookiesFetcher.restoreCookies(this); StartupMetrics.getInstance().recordHistogram(false); }
Example #9
Source File: ChromeTabbedActivity.java From delion with Apache License 2.0 | 4 votes |
@Override public void onPauseWithNative() { mTabModelSelectorImpl.commitAllTabClosures(); CookiesFetcher.persistCookies(this); super.onPauseWithNative(); }