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

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

Issue 1357643002: [Android]Don't check for child account/EDU device for every activity. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert SignInPreference to avoid 2 sided patch Created 5 years, 3 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 29 matching lines...) Expand all
40 import org.chromium.chrome.browser.accessibility.FontSizePrefs; 40 import org.chromium.chrome.browser.accessibility.FontSizePrefs;
41 import org.chromium.chrome.browser.banners.AppBannerManager; 41 import org.chromium.chrome.browser.banners.AppBannerManager;
42 import org.chromium.chrome.browser.banners.AppDetailsDelegate; 42 import org.chromium.chrome.browser.banners.AppDetailsDelegate;
43 import org.chromium.chrome.browser.customtabs.CustomTabsConnection; 43 import org.chromium.chrome.browser.customtabs.CustomTabsConnection;
44 import org.chromium.chrome.browser.document.DocumentActivity; 44 import org.chromium.chrome.browser.document.DocumentActivity;
45 import org.chromium.chrome.browser.document.IncognitoDocumentActivity; 45 import org.chromium.chrome.browser.document.IncognitoDocumentActivity;
46 import org.chromium.chrome.browser.download.DownloadManagerService; 46 import org.chromium.chrome.browser.download.DownloadManagerService;
47 import org.chromium.chrome.browser.externalauth.ExternalAuthUtils; 47 import org.chromium.chrome.browser.externalauth.ExternalAuthUtils;
48 import org.chromium.chrome.browser.feedback.EmptyFeedbackReporter; 48 import org.chromium.chrome.browser.feedback.EmptyFeedbackReporter;
49 import org.chromium.chrome.browser.feedback.FeedbackReporter; 49 import org.chromium.chrome.browser.feedback.FeedbackReporter;
50 import org.chromium.chrome.browser.firstrun.ForcedSigninProcessor;
50 import org.chromium.chrome.browser.gsa.GSAHelper; 51 import org.chromium.chrome.browser.gsa.GSAHelper;
51 import org.chromium.chrome.browser.help.HelpAndFeedback; 52 import org.chromium.chrome.browser.help.HelpAndFeedback;
52 import org.chromium.chrome.browser.identity.UniqueIdentificationGeneratorFactory ; 53 import org.chromium.chrome.browser.identity.UniqueIdentificationGeneratorFactory ;
53 import org.chromium.chrome.browser.identity.UuidBasedUniqueIdentificationGenerat or; 54 import org.chromium.chrome.browser.identity.UuidBasedUniqueIdentificationGenerat or;
54 import org.chromium.chrome.browser.init.InvalidStartupDialog; 55 import org.chromium.chrome.browser.init.InvalidStartupDialog;
55 import org.chromium.chrome.browser.invalidation.UniqueIdInvalidationClientNameGe nerator; 56 import org.chromium.chrome.browser.invalidation.UniqueIdInvalidationClientNameGe nerator;
56 import org.chromium.chrome.browser.metrics.UmaUtils; 57 import org.chromium.chrome.browser.metrics.UmaUtils;
57 import org.chromium.chrome.browser.metrics.VariationsSession; 58 import org.chromium.chrome.browser.metrics.VariationsSession;
58 import org.chromium.chrome.browser.multiwindow.MultiWindowUtils; 59 import org.chromium.chrome.browser.multiwindow.MultiWindowUtils;
59 import org.chromium.chrome.browser.net.qualityprovider.ExternalEstimateProviderA ndroid; 60 import org.chromium.chrome.browser.net.qualityprovider.ExternalEstimateProviderA ndroid;
60 import org.chromium.chrome.browser.net.spdyproxy.DataReductionProxySettings; 61 import org.chromium.chrome.browser.net.spdyproxy.DataReductionProxySettings;
61 import org.chromium.chrome.browser.notifications.NotificationUIManager; 62 import org.chromium.chrome.browser.notifications.NotificationUIManager;
62 import org.chromium.chrome.browser.omaha.RequestGenerator; 63 import org.chromium.chrome.browser.omaha.RequestGenerator;
63 import org.chromium.chrome.browser.omaha.UpdateInfoBarHelper; 64 import org.chromium.chrome.browser.omaha.UpdateInfoBarHelper;
64 import org.chromium.chrome.browser.partnercustomizations.PartnerBrowserCustomiza tions; 65 import org.chromium.chrome.browser.partnercustomizations.PartnerBrowserCustomiza tions;
65 import org.chromium.chrome.browser.policy.PolicyAuditor; 66 import org.chromium.chrome.browser.policy.PolicyAuditor;
66 import org.chromium.chrome.browser.preferences.AccessibilityPreferences; 67 import org.chromium.chrome.browser.preferences.AccessibilityPreferences;
67 import org.chromium.chrome.browser.preferences.LocationSettings; 68 import org.chromium.chrome.browser.preferences.LocationSettings;
68 import org.chromium.chrome.browser.preferences.PrefServiceBridge; 69 import org.chromium.chrome.browser.preferences.PrefServiceBridge;
69 import org.chromium.chrome.browser.preferences.Preferences; 70 import org.chromium.chrome.browser.preferences.Preferences;
70 import org.chromium.chrome.browser.preferences.PreferencesLauncher; 71 import org.chromium.chrome.browser.preferences.PreferencesLauncher;
71 import org.chromium.chrome.browser.preferences.autofill.AutofillPreferences; 72 import org.chromium.chrome.browser.preferences.autofill.AutofillPreferences;
72 import org.chromium.chrome.browser.preferences.password.SavePasswordsPreferences ; 73 import org.chromium.chrome.browser.preferences.password.SavePasswordsPreferences ;
73 import org.chromium.chrome.browser.preferences.privacy.PrivacyPreferences; 74 import org.chromium.chrome.browser.preferences.privacy.PrivacyPreferences;
74 import org.chromium.chrome.browser.preferences.website.SingleWebsitePreferences; 75 import org.chromium.chrome.browser.preferences.website.SingleWebsitePreferences;
75 import org.chromium.chrome.browser.printing.PrintingControllerFactory; 76 import org.chromium.chrome.browser.printing.PrintingControllerFactory;
76 import org.chromium.chrome.browser.rlz.RevenueStats; 77 import org.chromium.chrome.browser.rlz.RevenueStats;
78 import org.chromium.chrome.browser.services.AccountsChangedReceiver;
77 import org.chromium.chrome.browser.services.AndroidEduOwnerCheckCallback; 79 import org.chromium.chrome.browser.services.AndroidEduOwnerCheckCallback;
78 import org.chromium.chrome.browser.services.GoogleServicesManager; 80 import org.chromium.chrome.browser.services.GoogleServicesManager;
79 import org.chromium.chrome.browser.share.ShareHelper; 81 import org.chromium.chrome.browser.share.ShareHelper;
80 import org.chromium.chrome.browser.smartcard.EmptyPKCS11AuthenticationManager; 82 import org.chromium.chrome.browser.smartcard.EmptyPKCS11AuthenticationManager;
81 import org.chromium.chrome.browser.smartcard.PKCS11AuthenticationManager; 83 import org.chromium.chrome.browser.smartcard.PKCS11AuthenticationManager;
82 import org.chromium.chrome.browser.sync.SyncController; 84 import org.chromium.chrome.browser.sync.SyncController;
83 import org.chromium.chrome.browser.tab.AuthenticatorNavigationInterceptor; 85 import org.chromium.chrome.browser.tab.AuthenticatorNavigationInterceptor;
84 import org.chromium.chrome.browser.tab.Tab; 86 import org.chromium.chrome.browser.tab.Tab;
85 import org.chromium.chrome.browser.tabmodel.TabModelSelector; 87 import org.chromium.chrome.browser.tabmodel.TabModelSelector;
86 import org.chromium.chrome.browser.tabmodel.document.ActivityDelegateImpl; 88 import org.chromium.chrome.browser.tabmodel.document.ActivityDelegateImpl;
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 } 424 }
423 425
424 /** 426 /**
425 * The host activity should call this after the native library has loaded to ensure classes 427 * The host activity should call this after the native library has loaded to ensure classes
426 * shared by Activities in the same process are properly initialized. 428 * shared by Activities in the same process are properly initialized.
427 */ 429 */
428 public void initializeSharedClasses() { 430 public void initializeSharedClasses() {
429 if (mInitializedSharedClasses) return; 431 if (mInitializedSharedClasses) return;
430 mInitializedSharedClasses = true; 432 mInitializedSharedClasses = true;
431 433
434 ForcedSigninProcessor.start(this);
435 AccountsChangedReceiver.addObserver(new AccountsChangedReceiver.Accounts ChangedObserver() {
436 @Override
437 public void onAccountsChanged(Context context, Intent intent) {
438 ThreadUtils.runOnUiThread(new Runnable() {
439 @Override
440 public void run() {
441 ForcedSigninProcessor.start(ChromeApplication.this);
442 }
443 });
444 }
445 });
432 GoogleServicesManager.get(this).onMainActivityStart(); 446 GoogleServicesManager.get(this).onMainActivityStart();
433 RevenueStats.getInstance(); 447 RevenueStats.getInstance();
434 448
435 getPKCS11AuthenticationManager().initialize(ChromeApplication.this); 449 getPKCS11AuthenticationManager().initialize(ChromeApplication.this);
436 450
437 mDevToolsServer = new DevToolsServer(DEV_TOOLS_SERVER_SOCKET_PREFIX); 451 mDevToolsServer = new DevToolsServer(DEV_TOOLS_SERVER_SOCKET_PREFIX);
438 mDevToolsServer.setRemoteDebuggingEnabled( 452 mDevToolsServer.setRemoteDebuggingEnabled(
439 true, DevToolsServer.Security.ALLOW_DEBUG_PERMISSION); 453 true, DevToolsServer.Security.ALLOW_DEBUG_PERMISSION);
440 454
441 startApplicationActivityTracker(); 455 startApplicationActivityTracker();
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 */ 892 */
879 private void updatePasswordEchoState() { 893 private void updatePasswordEchoState() {
880 boolean systemEnabled = Settings.System.getInt( 894 boolean systemEnabled = Settings.System.getInt(
881 getApplicationContext().getContentResolver(), 895 getApplicationContext().getContentResolver(),
882 Settings.System.TEXT_SHOW_PASSWORD, 1) == 1; 896 Settings.System.TEXT_SHOW_PASSWORD, 1) == 1;
883 if (PrefServiceBridge.getInstance().getPasswordEchoEnabled() == systemEn abled) return; 897 if (PrefServiceBridge.getInstance().getPasswordEchoEnabled() == systemEn abled) return;
884 898
885 PrefServiceBridge.getInstance().setPasswordEchoEnabled(systemEnabled); 899 PrefServiceBridge.getInstance().setPasswordEchoEnabled(systemEnabled);
886 } 900 }
887 } 901 }
OLDNEW
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698