Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java

Issue 1919183003: Rename NotificationUIManager to NotificationPlatformBridge (1/2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser; 5 package org.chromium.chrome.browser;
6 6
7 import android.app.Activity; 7 import android.app.Activity;
8 import android.content.Context; 8 import android.content.Context;
9 import android.content.Intent; 9 import android.content.Intent;
10 import android.content.SharedPreferences; 10 import android.content.SharedPreferences;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 import org.chromium.chrome.browser.help.HelpAndFeedback; 51 import org.chromium.chrome.browser.help.HelpAndFeedback;
52 import org.chromium.chrome.browser.identity.UniqueIdentificationGeneratorFactory ; 52 import org.chromium.chrome.browser.identity.UniqueIdentificationGeneratorFactory ;
53 import org.chromium.chrome.browser.identity.UuidBasedUniqueIdentificationGenerat or; 53 import org.chromium.chrome.browser.identity.UuidBasedUniqueIdentificationGenerat or;
54 import org.chromium.chrome.browser.init.InvalidStartupDialog; 54 import org.chromium.chrome.browser.init.InvalidStartupDialog;
55 import org.chromium.chrome.browser.invalidation.UniqueIdInvalidationClientNameGe nerator; 55 import org.chromium.chrome.browser.invalidation.UniqueIdInvalidationClientNameGe nerator;
56 import org.chromium.chrome.browser.metrics.UmaUtils; 56 import org.chromium.chrome.browser.metrics.UmaUtils;
57 import org.chromium.chrome.browser.metrics.VariationsSession; 57 import org.chromium.chrome.browser.metrics.VariationsSession;
58 import org.chromium.chrome.browser.multiwindow.MultiWindowUtils; 58 import org.chromium.chrome.browser.multiwindow.MultiWindowUtils;
59 import org.chromium.chrome.browser.net.qualityprovider.ExternalEstimateProviderA ndroid; 59 import org.chromium.chrome.browser.net.qualityprovider.ExternalEstimateProviderA ndroid;
60 import org.chromium.chrome.browser.net.spdyproxy.DataReductionProxySettings; 60 import org.chromium.chrome.browser.net.spdyproxy.DataReductionProxySettings;
61 import org.chromium.chrome.browser.notifications.NotificationUIManager; 61 import org.chromium.chrome.browser.notifications.NotificationPlatformBridge;
62 import org.chromium.chrome.browser.omaha.RequestGenerator; 62 import org.chromium.chrome.browser.omaha.RequestGenerator;
63 import org.chromium.chrome.browser.partnercustomizations.PartnerBrowserCustomiza tions; 63 import org.chromium.chrome.browser.partnercustomizations.PartnerBrowserCustomiza tions;
64 import org.chromium.chrome.browser.physicalweb.PhysicalWebBleClient; 64 import org.chromium.chrome.browser.physicalweb.PhysicalWebBleClient;
65 import org.chromium.chrome.browser.policy.PolicyAuditor; 65 import org.chromium.chrome.browser.policy.PolicyAuditor;
66 import org.chromium.chrome.browser.preferences.LocationSettings; 66 import org.chromium.chrome.browser.preferences.LocationSettings;
67 import org.chromium.chrome.browser.preferences.PrefServiceBridge; 67 import org.chromium.chrome.browser.preferences.PrefServiceBridge;
68 import org.chromium.chrome.browser.preferences.Preferences; 68 import org.chromium.chrome.browser.preferences.Preferences;
69 import org.chromium.chrome.browser.preferences.PreferencesLauncher; 69 import org.chromium.chrome.browser.preferences.PreferencesLauncher;
70 import org.chromium.chrome.browser.preferences.autofill.AutofillPreferences; 70 import org.chromium.chrome.browser.preferences.autofill.AutofillPreferences;
71 import org.chromium.chrome.browser.preferences.password.SavePasswordsPreferences ; 71 import org.chromium.chrome.browser.preferences.password.SavePasswordsPreferences ;
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 updatePasswordEchoState(); 269 updatePasswordEchoState();
270 FontSizePrefs.getInstance(this).onSystemFontScaleChanged(); 270 FontSizePrefs.getInstance(this).onSystemFontScaleChanged();
271 updateAcceptLanguages(); 271 updateAcceptLanguages();
272 mVariationsSession.start(getApplicationContext()); 272 mVariationsSession.start(getApplicationContext());
273 mPowerBroadcastReceiver.onForegroundSessionStart(); 273 mPowerBroadcastReceiver.onForegroundSessionStart();
274 274
275 // Track the ratio of Chrome startups that are caused by notification cl icks. 275 // Track the ratio of Chrome startups that are caused by notification cl icks.
276 // TODO(johnme): Add other reasons (and switch to recordEnumeratedHistog ram). 276 // TODO(johnme): Add other reasons (and switch to recordEnumeratedHistog ram).
277 RecordHistogram.recordBooleanHistogram( 277 RecordHistogram.recordBooleanHistogram(
278 "Startup.BringToForegroundReason", 278 "Startup.BringToForegroundReason",
279 NotificationUIManager.wasNotificationRecentlyClicked()); 279 NotificationPlatformBridge.wasNotificationRecentlyClicked());
280 } 280 }
281 281
282 /** 282 /**
283 * Called when last of Chrome activities is stopped, ending the foreground s ession. This will 283 * Called when last of Chrome activities is stopped, ending the foreground s ession. This will
284 * not be called when a Chrome activity is stopped because another Chrome ac tivity takes over. 284 * not be called when a Chrome activity is stopped because another Chrome ac tivity takes over.
285 * This is ensured by ActivityStatus, which switches to track new activity w hen its started and 285 * This is ensured by ActivityStatus, which switches to track new activity w hen its started and
286 * will not report the old one being stopped (see createStateListener() belo w). 286 * will not report the old one being stopped (see createStateListener() belo w).
287 */ 287 */
288 private void onForegroundSessionEnd() { 288 private void onForegroundSessionEnd() {
289 if (!mIsStarted) return; 289 if (!mIsStarted) return;
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 * Caches flags that are needed by Activities that launch before the native library is loaded 830 * Caches flags that are needed by Activities that launch before the native library is loaded
831 * and stores them in SharedPreferences. Because this function is called dur ing launch after the 831 * and stores them in SharedPreferences. Because this function is called dur ing launch after the
832 * library has loaded, they won't affect the next launch until Chrome is res tarted. 832 * library has loaded, they won't affect the next launch until Chrome is res tarted.
833 */ 833 */
834 private void cacheNativeFlags() { 834 private void cacheNativeFlags() {
835 if (sIsFinishedCachingNativeFlags) return; 835 if (sIsFinishedCachingNativeFlags) return;
836 FeatureUtilities.cacheNativeFlags(); 836 FeatureUtilities.cacheNativeFlags();
837 sIsFinishedCachingNativeFlags = true; 837 sIsFinishedCachingNativeFlags = true;
838 } 838 }
839 } 839 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698