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

Side by Side Diff: components/policy/core/common/cloud/user_cloud_policy_store.cc

Issue 1178683009: Change histogram.h includes to histogram_macros.h in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 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 #include "components/policy/core/common/cloud/user_cloud_policy_store.h" 5 #include "components/policy/core/common/cloud/user_cloud_policy_store.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram_macros.h"
11 #include "base/task_runner_util.h" 11 #include "base/task_runner_util.h"
12 #include "google_apis/gaia/gaia_auth_util.h" 12 #include "google_apis/gaia/gaia_auth_util.h"
13 #include "policy/proto/cloud_policy.pb.h" 13 #include "policy/proto/cloud_policy.pb.h"
14 #include "policy/proto/device_management_backend.pb.h" 14 #include "policy/proto/device_management_backend.pb.h"
15 #include "policy/proto/policy_signing_key.pb.h" 15 #include "policy/proto/policy_signing_key.pb.h"
16 16
17 namespace em = enterprise_management; 17 namespace em = enterprise_management;
18 18
19 namespace policy { 19 namespace policy {
20 20
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 InstallPolicy(validator->policy_data().Pass(), validator->payload().Pass()); 452 InstallPolicy(validator->policy_data().Pass(), validator->payload().Pass());
453 453
454 // If the key was rotated, update our local cache of the key. 454 // If the key was rotated, update our local cache of the key.
455 if (validator->policy()->has_new_public_key()) 455 if (validator->policy()->has_new_public_key())
456 policy_key_ = validator->policy()->new_public_key(); 456 policy_key_ = validator->policy()->new_public_key();
457 status_ = STATUS_OK; 457 status_ = STATUS_OK;
458 NotifyStoreLoaded(); 458 NotifyStoreLoaded();
459 } 459 }
460 460
461 } // namespace policy 461 } // namespace policy
OLDNEW
« no previous file with comments | « components/policy/core/common/cloud/cloud_policy_validator.cc ('k') | components/precache/core/precache_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698