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

Side by Side Diff: chrome/test/base/testing_browser_process.cc

Issue 8586030: Added ConfigurationPolicyProvider::RefreshPolicies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 9 years, 1 month 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
« no previous file with comments | « chrome/browser/ui/webui/policy_ui.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/test/base/testing_browser_process.h" 5 #include "chrome/test/base/testing_browser_process.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "chrome/browser/google/google_url_tracker.h" 8 #include "chrome/browser/google/google_url_tracker.h"
9 #include "chrome/browser/notifications/notification_ui_manager.h" 9 #include "chrome/browser/notifications/notification_ui_manager.h"
10 #include "chrome/browser/policy/browser_policy_connector.h" 10 #include "chrome/browser/policy/browser_policy_connector.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 profile_manager_.reset(profile_manager); 75 profile_manager_.reset(profile_manager);
76 } 76 }
77 77
78 PrefService* TestingBrowserProcess::local_state() { 78 PrefService* TestingBrowserProcess::local_state() {
79 return local_state_; 79 return local_state_;
80 } 80 }
81 81
82 policy::BrowserPolicyConnector* 82 policy::BrowserPolicyConnector*
83 TestingBrowserProcess::browser_policy_connector() { 83 TestingBrowserProcess::browser_policy_connector() {
84 #if defined(ENABLE_CONFIGURATION_POLICY) 84 #if defined(ENABLE_CONFIGURATION_POLICY)
85 if (!browser_policy_connector_.get()) { 85 if (!browser_policy_connector_.get())
86 browser_policy_connector_.reset( 86 browser_policy_connector_.reset(new policy::BrowserPolicyConnector());
87 policy::BrowserPolicyConnector::CreateForTests());
88 }
89 #endif 87 #endif
90 return browser_policy_connector_.get(); 88 return browser_policy_connector_.get();
91 } 89 }
92 90
93 IconManager* TestingBrowserProcess::icon_manager() { 91 IconManager* TestingBrowserProcess::icon_manager() {
94 return NULL; 92 return NULL;
95 } 93 }
96 94
97 ThumbnailGenerator* TestingBrowserProcess::GetThumbnailGenerator() { 95 ThumbnailGenerator* TestingBrowserProcess::GetThumbnailGenerator() {
98 return NULL; 96 return NULL;
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 } 273 }
276 274
277 void TestingBrowserProcess::SetDevToolsManager(DevToolsManager* manager) { 275 void TestingBrowserProcess::SetDevToolsManager(DevToolsManager* manager) {
278 devtools_manager_.reset(manager); 276 devtools_manager_.reset(manager);
279 } 277 }
280 278
281 void TestingBrowserProcess::SetBrowserPolicyConnector( 279 void TestingBrowserProcess::SetBrowserPolicyConnector(
282 policy::BrowserPolicyConnector* connector) { 280 policy::BrowserPolicyConnector* connector) {
283 browser_policy_connector_.reset(connector); 281 browser_policy_connector_.reset(connector);
284 } 282 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/policy_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698