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

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

Issue 12189011: Split up chrome/browser/policy subdirectory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, add chrome/browser/chromeos/policy/OWNERS 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/user_cloud_policy_manager_factory.h" 5 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/policy/user_cloud_policy_manager.h" 8 #include "chrome/browser/policy/cloud/user_cloud_policy_manager.h"
9 #include "chrome/browser/policy/user_cloud_policy_store.h" 9 #include "chrome/browser/policy/cloud/user_cloud_policy_store.h"
10 #include "chrome/browser/profiles/profile_dependency_manager.h" 10 #include "chrome/browser/profiles/profile_dependency_manager.h"
11 11
12 namespace policy { 12 namespace policy {
13 13
14 // static 14 // static
15 UserCloudPolicyManagerFactory* UserCloudPolicyManagerFactory::GetInstance() { 15 UserCloudPolicyManagerFactory* UserCloudPolicyManagerFactory::GetInstance() {
16 return Singleton<UserCloudPolicyManagerFactory>::get(); 16 return Singleton<UserCloudPolicyManagerFactory>::get();
17 } 17 }
18 18
19 // static 19 // static
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 ManagerMap::iterator entry = managers_.find(profile); 76 ManagerMap::iterator entry = managers_.find(profile);
77 if (entry != managers_.end()) { 77 if (entry != managers_.end()) {
78 DCHECK_EQ(instance, entry->second); 78 DCHECK_EQ(instance, entry->second);
79 managers_.erase(entry); 79 managers_.erase(entry);
80 } else { 80 } else {
81 NOTREACHED(); 81 NOTREACHED();
82 } 82 }
83 } 83 }
84 84
85 } // namespace policy 85 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698