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

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

Issue 12189011: Split up chrome/browser/policy subdirectory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 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 | 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/user_cloud_policy_manager.h" 5 #include "chrome/browser/policy/cloud/user_cloud_policy_manager.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "chrome/browser/policy/cloud_policy_constants.h" 9 #include "chrome/browser/policy/cloud/cloud_policy_constants.h"
10 #include "chrome/browser/policy/cloud_policy_service.h" 10 #include "chrome/browser/policy/cloud/cloud_policy_service.h"
11 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h"
12 #include "chrome/browser/policy/cloud/user_cloud_policy_store.h"
11 #include "chrome/browser/policy/policy_types.h" 13 #include "chrome/browser/policy/policy_types.h"
12 #include "chrome/browser/policy/user_cloud_policy_manager_factory.h"
13 #include "chrome/browser/policy/user_cloud_policy_store.h"
14 #include "chrome/common/pref_names.h" 14 #include "chrome/common/pref_names.h"
15 15
16 namespace em = enterprise_management; 16 namespace em = enterprise_management;
17 17
18 namespace policy { 18 namespace policy {
19 19
20 UserCloudPolicyManager::UserCloudPolicyManager( 20 UserCloudPolicyManager::UserCloudPolicyManager(
21 Profile* profile, 21 Profile* profile,
22 scoped_ptr<UserCloudPolicyStore> store) 22 scoped_ptr<UserCloudPolicyStore> store)
23 : CloudPolicyManager( 23 : CloudPolicyManager(
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void UserCloudPolicyManager::RegisterClient(const std::string& access_token) { 55 void UserCloudPolicyManager::RegisterClient(const std::string& access_token) {
56 DCHECK(client()) << "Callers must invoke Initialize() first"; 56 DCHECK(client()) << "Callers must invoke Initialize() first";
57 if (!client()->is_registered()) { 57 if (!client()->is_registered()) {
58 DVLOG(1) << "Registering client with access token: " << access_token; 58 DVLOG(1) << "Registering client with access token: " << access_token;
59 client()->Register(em::DeviceRegisterRequest::BROWSER, 59 client()->Register(em::DeviceRegisterRequest::BROWSER,
60 access_token, std::string(), false); 60 access_token, std::string(), false);
61 } 61 }
62 } 62 }
63 63
64 } // namespace policy 64 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698