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

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: Created 7 years, 8 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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 chromeos::DeviceSettingsService::Get())); 208 chromeos::DeviceSettingsService::Get()));
209 device_local_account_policy_service_->Connect( 209 device_local_account_policy_service_->Connect(
210 device_management_service_.get()); 210 device_management_service_.get());
211 } 211 }
212 212
213 GetAppPackUpdater(); 213 GetAppPackUpdater();
214 214
215 SetTimezoneIfPolicyAvailable(); 215 SetTimezoneIfPolicyAvailable();
216 #endif 216 #endif
217 217
218 policy_statistics_collector_.reset( 218 policy_statistics_collector_.reset(new policy::PolicyStatisticsCollector(
219 new policy::PolicyStatisticsCollector( 219 GetPolicyService(),
220 GetPolicyService(), 220 local_state_,
221 local_state_, 221 base::MessageLoop::current()->message_loop_proxy()));
222 MessageLoop::current()->message_loop_proxy()));
223 policy_statistics_collector_->Initialize(); 222 policy_statistics_collector_->Initialize();
224 223
225 is_initialized_ = true; 224 is_initialized_ = true;
226 } 225 }
227 226
228 void BrowserPolicyConnector::Shutdown() { 227 void BrowserPolicyConnector::Shutdown() {
229 is_initialized_ = false; 228 is_initialized_ = false;
230 229
231 if (g_testing_provider) 230 if (g_testing_provider)
232 g_testing_provider->Shutdown(); 231 g_testing_provider->Shutdown();
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 return new AsyncPolicyProvider(loader.Pass()); 596 return new AsyncPolicyProvider(loader.Pass());
598 } else { 597 } else {
599 return NULL; 598 return NULL;
600 } 599 }
601 #else 600 #else
602 return NULL; 601 return NULL;
603 #endif 602 #endif
604 } 603 }
605 604
606 } // namespace policy 605 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698