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

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

Issue 2515293004: Chrome talks to Play to install WebAPKs. (Closed)
Patch Set: Add finch flag and don't use InstallerDelegate to monitor Play install. Created 4 years 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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.init; 5 package org.chromium.chrome.browser.init;
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.view.View; 10 import android.view.View;
(...skipping 17 matching lines...) Expand all
28 import org.chromium.chrome.browser.identity.UniqueIdentificationGeneratorFactory ; 28 import org.chromium.chrome.browser.identity.UniqueIdentificationGeneratorFactory ;
29 import org.chromium.chrome.browser.identity.UuidBasedUniqueIdentificationGenerat or; 29 import org.chromium.chrome.browser.identity.UuidBasedUniqueIdentificationGenerat or;
30 import org.chromium.chrome.browser.invalidation.UniqueIdInvalidationClientNameGe nerator; 30 import org.chromium.chrome.browser.invalidation.UniqueIdInvalidationClientNameGe nerator;
31 import org.chromium.chrome.browser.multiwindow.MultiWindowUtils; 31 import org.chromium.chrome.browser.multiwindow.MultiWindowUtils;
32 import org.chromium.chrome.browser.net.spdyproxy.DataReductionProxySettings; 32 import org.chromium.chrome.browser.net.spdyproxy.DataReductionProxySettings;
33 import org.chromium.chrome.browser.preferences.PrefServiceBridge; 33 import org.chromium.chrome.browser.preferences.PrefServiceBridge;
34 import org.chromium.chrome.browser.rlz.RevenueStats; 34 import org.chromium.chrome.browser.rlz.RevenueStats;
35 import org.chromium.chrome.browser.services.AccountsChangedReceiver; 35 import org.chromium.chrome.browser.services.AccountsChangedReceiver;
36 import org.chromium.chrome.browser.services.GoogleServicesManager; 36 import org.chromium.chrome.browser.services.GoogleServicesManager;
37 import org.chromium.chrome.browser.sync.SyncController; 37 import org.chromium.chrome.browser.sync.SyncController;
38 import org.chromium.chrome.browser.webapps.WebApkInstaller;
38 import org.chromium.components.signin.AccountManagerHelper; 39 import org.chromium.components.signin.AccountManagerHelper;
39 import org.chromium.content.common.ContentSwitches; 40 import org.chromium.content.common.ContentSwitches;
40 import org.chromium.printing.PrintDocumentAdapterWrapper; 41 import org.chromium.printing.PrintDocumentAdapterWrapper;
41 import org.chromium.printing.PrintingControllerImpl; 42 import org.chromium.printing.PrintingControllerImpl;
42 import org.chromium.ui.UiUtils; 43 import org.chromium.ui.UiUtils;
43 44
44 /** 45 /**
45 * Handles the initialization dependences of the browser process. This is meant to handle the 46 * Handles the initialization dependences of the browser process. This is meant to handle the
46 * initialization that is not tied to any particular Activity, and the logic tha t should only be 47 * initialization that is not tied to any particular Activity, and the logic tha t should only be
47 * triggered a single time for the lifetime of the browser process. 48 * triggered a single time for the lifetime of the browser process.
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 * Performs the post native initialization. 173 * Performs the post native initialization.
173 */ 174 */
174 protected void handlePostNativeInitialization() { 175 protected void handlePostNativeInitialization() {
175 final ChromeApplication application = 176 final ChromeApplication application =
176 (ChromeApplication) ContextUtils.getApplicationContext(); 177 (ChromeApplication) ContextUtils.getApplicationContext();
177 178
178 DataReductionProxySettings.reconcileDataReductionProxyEnabledState(appli cation); 179 DataReductionProxySettings.reconcileDataReductionProxyEnabledState(appli cation);
179 ChromeActivitySessionTracker.getInstance().initializeWithNative(); 180 ChromeActivitySessionTracker.getInstance().initializeWithNative();
180 ChromeApplication.removeSessionCookies(); 181 ChromeApplication.removeSessionCookies();
181 AppBannerManager.setAppDetailsDelegate(application.createAppDetailsDeleg ate()); 182 AppBannerManager.setAppDetailsDelegate(application.createAppDetailsDeleg ate());
183 WebApkInstaller.setWebApkInstallClientDelegate(
184 application.createWebApkInstallClientDelegate());
182 ChromeLifetimeController.initialize(); 185 ChromeLifetimeController.initialize();
183 186
184 PrefServiceBridge.getInstance().migratePreferences(application); 187 PrefServiceBridge.getInstance().migratePreferences(application);
185 } 188 }
186 189
187 /** 190 /**
188 * Initializes the deferred startup tasks that should only be triggered once per browser process 191 * Initializes the deferred startup tasks that should only be triggered once per browser process
189 * lifetime. 192 * lifetime.
190 */ 193 */
191 public final void initializeDeferredStartupTasks() { 194 public final void initializeDeferredStartupTasks() {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 254
252 if (ApiCompatibilityUtils.isPrintingSupported()) { 255 if (ApiCompatibilityUtils.isPrintingSupported()) {
253 String errorText = application.getResources().getString( 256 String errorText = application.getResources().getString(
254 R.string.error_printing_failed); 257 R.string.error_printing_failed);
255 PrintingControllerImpl.create(new PrintDocumentAdapterWrappe r(), errorText); 258 PrintingControllerImpl.create(new PrintDocumentAdapterWrappe r(), errorText);
256 } 259 }
257 } 260 }
258 }); 261 });
259 } 262 }
260 } 263 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698