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

Side by Side Diff: chrome/browser/chromeos/login/easy_unlock/bootstrap_manager.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/easy_unlock/bootstrap_manager.h" 5 #include "chrome/browser/chromeos/login/easy_unlock/bootstrap_manager.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/prefs/pref_registry_simple.h"
10 #include "base/prefs/pref_service.h"
11 #include "base/prefs/scoped_user_pref_update.h"
12 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
13 #include "chrome/browser/chromeos/login/users/chrome_user_manager_impl.h" 10 #include "chrome/browser/chromeos/login/users/chrome_user_manager_impl.h"
11 #include "components/prefs/pref_registry_simple.h"
12 #include "components/prefs/pref_service.h"
13 #include "components/prefs/scoped_user_pref_update.h"
14 #include "components/user_manager/known_user.h" 14 #include "components/user_manager/known_user.h"
15 15
16 namespace chromeos { 16 namespace chromeos {
17 17
18 namespace { 18 namespace {
19 19
20 // A pref list of users who have not finished Easy bootstrapping. 20 // A pref list of users who have not finished Easy bootstrapping.
21 const char kPendingEasyBootstrapUsers[] = "PendingEasyBootstrapUsers"; 21 const char kPendingEasyBootstrapUsers[] = "PendingEasyBootstrapUsers";
22 22
23 } // namespace 23 } // namespace
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 for (size_t i = 0; i < users->GetSize(); ++i) { 82 for (size_t i = 0; i < users->GetSize(); ++i) {
83 std::string current_user; 83 std::string current_user;
84 if (users->GetString(i, &current_user) && 84 if (users->GetString(i, &current_user) &&
85 account_id.GetUserEmail() == current_user) 85 account_id.GetUserEmail() == current_user)
86 return true; 86 return true;
87 } 87 }
88 return false; 88 return false;
89 } 89 }
90 90
91 } // namespace chromeos 91 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698