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

Side by Side Diff: chrome/browser/policy/cloud/cloud_policy_client.cc

Issue 12189011: Split up chrome/browser/policy subdirectory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 7 years, 9 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/policy/cloud_policy_client.h" 5 #include "chrome/browser/policy/cloud/cloud_policy_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/guid.h" 8 #include "base/guid.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
11 #include "chrome/browser/policy/device_management_service.h" 11 #include "chrome/browser/policy/cloud/device_management_service.h"
12 12
13 namespace em = enterprise_management; 13 namespace em = enterprise_management;
14 14
15 namespace policy { 15 namespace policy {
16 16
17 namespace { 17 namespace {
18 18
19 // Translates the DeviceRegisterResponse::DeviceMode |mode| to the enum used 19 // Translates the DeviceRegisterResponse::DeviceMode |mode| to the enum used
20 // internally to represent different device modes. 20 // internally to represent different device modes.
21 DeviceMode TranslateProtobufDeviceMode( 21 DeviceMode TranslateProtobufDeviceMode(
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 317
318 void CloudPolicyClient::NotifyRegistrationStateChanged() { 318 void CloudPolicyClient::NotifyRegistrationStateChanged() {
319 FOR_EACH_OBSERVER(Observer, observers_, OnRegistrationStateChanged(this)); 319 FOR_EACH_OBSERVER(Observer, observers_, OnRegistrationStateChanged(this));
320 } 320 }
321 321
322 void CloudPolicyClient::NotifyClientError() { 322 void CloudPolicyClient::NotifyClientError() {
323 FOR_EACH_OBSERVER(Observer, observers_, OnClientError(this)); 323 FOR_EACH_OBSERVER(Observer, observers_, OnClientError(this));
324 } 324 }
325 325
326 } // namespace policy 326 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698