| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |