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

Side by Side Diff: chrome/browser/chromeos/login/auth/chrome_cryptohome_authenticator.cc

Issue 419013003: Replace c/b/nss_context by a KeyedService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added Linux implementation. Created 6 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 | Annotate | Revision Log
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 #include "chrome/browser/chromeos/login/auth/chrome_cryptohome_authenticator.h" 5 #include "chrome/browser/chromeos/login/auth/chrome_cryptohome_authenticator.h"
6 6
7 #include "base/thread_task_runner_handle.h" 7 #include "base/thread_task_runner_handle.h"
8 #include "chrome/browser/chromeos/ownership/owner_settings_service.h" 8 #include "chrome/browser/chromeos/ownership/owner_settings_service.h"
9 #include "chrome/browser/chromeos/settings/cros_settings.h" 9 #include "chrome/browser/chromeos/settings/cros_settings.h"
10 #include "chromeos/login/login_state.h"
10 #include "components/user_manager/user_manager.h" 11 #include "components/user_manager/user_manager.h"
11 #include "content/public/browser/browser_thread.h" 12 #include "content/public/browser/browser_thread.h"
12 13
13 using content::BrowserThread; 14 using content::BrowserThread;
14 15
15 namespace chromeos { 16 namespace chromeos {
16 17
17 ChromeCryptohomeAuthenticator::ChromeCryptohomeAuthenticator( 18 ChromeCryptohomeAuthenticator::ChromeCryptohomeAuthenticator(
18 AuthStatusConsumer* consumer) 19 AuthStatusConsumer* consumer)
19 : CryptohomeAuthenticator(base::ThreadTaskRunnerHandle::Get(), consumer) { 20 : CryptohomeAuthenticator(base::ThreadTaskRunnerHandle::Get(), consumer) {
(...skipping 20 matching lines...) Expand all
40 if (LoginState::IsInitialized()) { 41 if (LoginState::IsInitialized()) {
41 LoginState::Get()->SetLoggedInState(LoginState::LOGGED_IN_SAFE_MODE, 42 LoginState::Get()->SetLoggedInState(LoginState::LOGGED_IN_SAFE_MODE,
42 LoginState::LOGGED_IN_USER_NONE); 43 LoginState::LOGGED_IN_USER_NONE);
43 } 44 }
44 45
45 OwnerSettingsService::IsOwnerForSafeModeAsync(context.GetUserIDHash(), 46 OwnerSettingsService::IsOwnerForSafeModeAsync(context.GetUserIDHash(),
46 callback); 47 callback);
47 } 48 }
48 49
49 } // namespace chromeos 50 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698