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

Side by Side Diff: chrome/browser/policy/browser_policy_connector.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 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 | 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/browser_policy_connector.h" 5 #include "chrome/browser/policy/browser_policy_connector.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <iterator> 8 #include <iterator>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 GetAppPackUpdater(); 198 GetAppPackUpdater();
199 199
200 SetTimezoneIfPolicyAvailable(); 200 SetTimezoneIfPolicyAvailable();
201 #endif 201 #endif
202 202
203 policy_statistics_collector_.reset( 203 policy_statistics_collector_.reset(
204 new policy::PolicyStatisticsCollector( 204 new policy::PolicyStatisticsCollector(
205 GetPolicyService(), 205 GetPolicyService(),
206 local_state_, 206 local_state_,
207 MessageLoop::current()->message_loop_proxy())); 207 base::MessageLoop::current()->message_loop_proxy()));
208 policy_statistics_collector_->Initialize(); 208 policy_statistics_collector_->Initialize();
209 209
210 is_initialized_ = true; 210 is_initialized_ = true;
211 } 211 }
212 212
213 void BrowserPolicyConnector::Shutdown() { 213 void BrowserPolicyConnector::Shutdown() {
214 is_initialized_ = false; 214 is_initialized_ = false;
215 215
216 if (g_testing_provider) 216 if (g_testing_provider)
217 g_testing_provider->Shutdown(); 217 g_testing_provider->Shutdown();
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 return new AsyncPolicyProvider(loader.Pass()); 487 return new AsyncPolicyProvider(loader.Pass());
488 } else { 488 } else {
489 return NULL; 489 return NULL;
490 } 490 }
491 #else 491 #else
492 return NULL; 492 return NULL;
493 #endif 493 #endif
494 } 494 }
495 495
496 } // namespace policy 496 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/async_policy_provider_unittest.cc ('k') | chrome/browser/policy/cloud/cloud_policy_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698