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

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

Issue 2695113002: [Webview, Child Accounts] Automatically sign in to Chrome if needed. (Closed)
Patch Set: Created 3 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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.os.AsyncTask; 9 import android.os.AsyncTask;
10 import android.os.Build; 10 import android.os.Build;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 import java.util.LinkedList; 54 import java.util.LinkedList;
55 import java.util.Locale; 55 import java.util.Locale;
56 56
57 /** 57 /**
58 * Application level delegate that handles start up tasks. 58 * Application level delegate that handles start up tasks.
59 * {@link AsyncInitializationActivity} classes should override the {@link Browse rParts} 59 * {@link AsyncInitializationActivity} classes should override the {@link Browse rParts}
60 * interface for any additional initialization tasks for the initialization to w ork as intended. 60 * interface for any additional initialization tasks for the initialization to w ork as intended.
61 */ 61 */
62 public class ChromeBrowserInitializer { 62 public class ChromeBrowserInitializer {
63 private static final String TAG = "BrowserInitializer"; 63 private static final String TAG = "BrowserInitializer";
64 private static ChromeBrowserInitializer sChromeBrowserInitiliazer; 64 private static ChromeBrowserInitializer sChromeBrowserInitiliazer;
Bernhard Bauer 2017/02/15 15:09:37 I'm going to resist the temptation of digging out
aberent 2017/02/15 18:34:46 Done.
65 65
66 private final Handler mHandler; 66 private final Handler mHandler;
67 private final ChromeApplication mApplication; 67 private final ChromeApplication mApplication;
68 private final Locale mInitialLocale = Locale.getDefault(); 68 private final Locale mInitialLocale = Locale.getDefault();
69 69
70 private boolean mPreInflationStartupComplete; 70 private boolean mPreInflationStartupComplete;
71 private boolean mPostInflationStartupComplete; 71 private boolean mPostInflationStartupComplete;
72 private boolean mNativeInitializationComplete; 72 private boolean mNativeInitializationComplete;
73 73
74 private MinidumpDirectoryObserver mMinidumpDirectoryObserver; 74 private MinidumpDirectoryObserver mMinidumpDirectoryObserver;
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 if (!mInitialLocale.equals(Locale.getDefault())) { 432 if (!mInitialLocale.equals(Locale.getDefault())) {
433 Log.e(TAG, "Killing process because of locale change."); 433 Log.e(TAG, "Killing process because of locale change.");
434 Process.killProcess(Process.myPid()); 434 Process.killProcess(Process.myPid());
435 } 435 }
436 436
437 DeviceFormFactor.resetValuesIfNeeded(mApplication); 437 DeviceFormFactor.resetValuesIfNeeded(mApplication);
438 } 438 }
439 } 439 }
440 }; 440 };
441 } 441 }
442
443 /**
444 * For unit testing of clients.
445 * @param initializer
Bernhard Bauer 2017/02/15 15:09:37 If you add a param, document it.
aberent 2017/02/15 18:34:46 Done.
446 */
447 public static void setForTesting(ChromeBrowserInitializer initializer) {
448 sChromeBrowserInitiliazer = initializer;
449 }
442 } 450 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698