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

Side by Side Diff: chrome/browser/chromeos/policy/consumer_management_service.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 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/policy/consumer_management_service.h" 5 #include "chrome/browser/chromeos/policy/consumer_management_service.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/prefs/pref_registry_simple.h"
12 #include "base/prefs/pref_service.h"
13 #include "chrome/browser/browser_process.h" 11 #include "chrome/browser/browser_process.h"
14 #include "chrome/common/pref_names.h" 12 #include "chrome/common/pref_names.h"
15 #include "chromeos/dbus/cryptohome/rpc.pb.h" 13 #include "chromeos/dbus/cryptohome/rpc.pb.h"
16 #include "chromeos/dbus/cryptohome_client.h" 14 #include "chromeos/dbus/cryptohome_client.h"
17 #include "components/policy/core/common/cloud/cloud_policy_constants.h" 15 #include "components/policy/core/common/cloud/cloud_policy_constants.h"
16 #include "components/prefs/pref_registry_simple.h"
17 #include "components/prefs/pref_service.h"
18 #include "policy/proto/device_management_backend.pb.h" 18 #include "policy/proto/device_management_backend.pb.h"
19 19
20 namespace em = enterprise_management; 20 namespace em = enterprise_management;
21 21
22 namespace { 22 namespace {
23 23
24 // Boot atttributes ID. 24 // Boot atttributes ID.
25 const char kAttributeOwnerId[] = "consumer_management.owner_id"; 25 const char kAttributeOwnerId[] = "consumer_management.owner_id";
26 26
27 // The string of Status enum. 27 // The string of Status enum.
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 if (!dbus_success || reply.error() != 0) { 191 if (!dbus_success || reply.error() != 0) {
192 LOG(ERROR) << "Failed to flush and sign boot lockbox."; 192 LOG(ERROR) << "Failed to flush and sign boot lockbox.";
193 callback.Run(false); 193 callback.Run(false);
194 return; 194 return;
195 } 195 }
196 196
197 callback.Run(true); 197 callback.Run(true);
198 } 198 }
199 199
200 } // namespace policy 200 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698