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

Side by Side Diff: chrome/browser/chromeos/login/login_utils.cc

Issue 7618013: Revert 96409 - Speculatively revert r96364, it's the best bet on the NaCL breakage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/browser_shutdown.cc ('k') | chrome/browser/metrics/metrics_log.cc » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/browser/chromeos/login/login_utils.h" 5 #include "chrome/browser/chromeos/login/login_utils.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 23 matching lines...) Expand all
34 #include "chrome/browser/chromeos/login/ownership_service.h" 34 #include "chrome/browser/chromeos/login/ownership_service.h"
35 #include "chrome/browser/chromeos/login/parallel_authenticator.h" 35 #include "chrome/browser/chromeos/login/parallel_authenticator.h"
36 #include "chrome/browser/chromeos/login/screen_locker.h" 36 #include "chrome/browser/chromeos/login/screen_locker.h"
37 #include "chrome/browser/chromeos/login/user_manager.h" 37 #include "chrome/browser/chromeos/login/user_manager.h"
38 #include "chrome/browser/extensions/extension_service.h" 38 #include "chrome/browser/extensions/extension_service.h"
39 #include "chrome/browser/net/chrome_url_request_context.h" 39 #include "chrome/browser/net/chrome_url_request_context.h"
40 #include "chrome/browser/net/gaia/gaia_oauth_consumer.h" 40 #include "chrome/browser/net/gaia/gaia_oauth_consumer.h"
41 #include "chrome/browser/net/gaia/gaia_oauth_fetcher.h" 41 #include "chrome/browser/net/gaia/gaia_oauth_fetcher.h"
42 #include "chrome/browser/net/gaia/token_service.h" 42 #include "chrome/browser/net/gaia/token_service.h"
43 #include "chrome/browser/net/preconnect.h" 43 #include "chrome/browser/net/preconnect.h"
44 #include "chrome/browser/plugin_updater.h"
45 #include "chrome/browser/policy/browser_policy_connector.h" 44 #include "chrome/browser/policy/browser_policy_connector.h"
46 #include "chrome/browser/prefs/pref_member.h" 45 #include "chrome/browser/prefs/pref_member.h"
47 #include "chrome/browser/profiles/profile.h" 46 #include "chrome/browser/profiles/profile.h"
48 #include "chrome/browser/profiles/profile_manager.h" 47 #include "chrome/browser/profiles/profile_manager.h"
49 #include "chrome/browser/sync/profile_sync_service.h" 48 #include "chrome/browser/sync/profile_sync_service.h"
50 #include "chrome/browser/ui/browser_init.h" 49 #include "chrome/browser/ui/browser_init.h"
51 #include "chrome/common/chrome_paths.h" 50 #include "chrome/common/chrome_paths.h"
52 #include "chrome/common/chrome_switches.h" 51 #include "chrome/common/chrome_switches.h"
53 #include "chrome/common/logging_chrome.h" 52 #include "chrome/common/logging_chrome.h"
54 #include "chrome/common/net/gaia/gaia_constants.h" 53 #include "chrome/common/net/gaia/gaia_constants.h"
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 if (cryptohome->TpmIsEnabled() && !cryptohome->TpmIsBeingOwned()) { 540 if (cryptohome->TpmIsEnabled() && !cryptohome->TpmIsBeingOwned()) {
542 if (cryptohome->TpmIsOwned()) { 541 if (cryptohome->TpmIsOwned()) {
543 cryptohome->TpmClearStoredPassword(); 542 cryptohome->TpmClearStoredPassword();
544 } else { 543 } else {
545 cryptohome->TpmCanAttemptOwnership(); 544 cryptohome->TpmCanAttemptOwnership();
546 } 545 }
547 } 546 }
548 btl->AddLoginTimeMarker("TPMOwn-End", false); 547 btl->AddLoginTimeMarker("TPMOwn-End", false);
549 } 548 }
550 549
551 // Enable/disable plugins based on user preferences.
552 PluginUpdater::GetInstance()->SetProfile(user_profile);
553
554 // We suck. This is a hack since we do not have the enterprise feature 550 // We suck. This is a hack since we do not have the enterprise feature
555 // done yet to pull down policies from the domain admin. We'll take this 551 // done yet to pull down policies from the domain admin. We'll take this
556 // out when we get that done properly. 552 // out when we get that done properly.
557 // TODO(xiyuan): Remove this once enterprise feature is ready. 553 // TODO(xiyuan): Remove this once enterprise feature is ready.
558 if (EndsWith(username_, "@google.com", true)) { 554 if (EndsWith(username_, "@google.com", true)) {
559 PrefService* pref_service = user_profile->GetPrefs(); 555 PrefService* pref_service = user_profile->GetPrefs();
560 pref_service->SetBoolean(prefs::kEnableScreenLock, true); 556 pref_service->SetBoolean(prefs::kEnableScreenLock, true);
561 } 557 }
562 558
563 user_profile->OnLogin(); 559 user_profile->OnLogin();
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 // Mark login host for deletion after browser starts. This 981 // Mark login host for deletion after browser starts. This
986 // guarantees that the message loop will be referenced by the 982 // guarantees that the message loop will be referenced by the
987 // browser before it is dereferenced by the login host. 983 // browser before it is dereferenced by the login host.
988 if (login_host) { 984 if (login_host) {
989 login_host->OnSessionStart(); 985 login_host->OnSessionStart();
990 login_host = NULL; 986 login_host = NULL;
991 } 987 }
992 } 988 }
993 989
994 } // namespace chromeos 990 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/browser_shutdown.cc ('k') | chrome/browser/metrics/metrics_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698