| 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/chromeos/login/session_manager_observer.h" | 5 #include "chrome/browser/chromeos/login/session_manager_observer.h" |
| 6 | 6 |
| 7 #include "chrome/browser/browser_process.h" | 7 #include "chrome/browser/browser_process.h" |
| 8 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" | |
| 9 #include "chrome/browser/chromeos/login/signed_settings.h" | 8 #include "chrome/browser/chromeos/login/signed_settings.h" |
| 10 #include "chrome/browser/chromeos/login/signed_settings_cache.h" | 9 #include "chrome/browser/chromeos/login/signed_settings_cache.h" |
| 11 #include "chrome/common/chrome_notification_types.h" | 10 #include "chrome/common/chrome_notification_types.h" |
| 11 #include "chromeos/dbus/dbus_thread_manager.h" |
| 12 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
| 13 #include "content/public/browser/notification_service.h" | 13 #include "content/public/browser/notification_service.h" |
| 14 | 14 |
| 15 namespace chromeos { | 15 namespace chromeos { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 class StubDelegate | 19 class StubDelegate |
| 20 : public SignedSettings::Delegate< | 20 : public SignedSettings::Delegate< |
| 21 const enterprise_management::PolicyFetchResponse&> { | 21 const enterprise_management::PolicyFetchResponse&> { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 void SessionManagerObserver::PropertyChangeComplete(bool success) { | 73 void SessionManagerObserver::PropertyChangeComplete(bool success) { |
| 74 if (success) { | 74 if (success) { |
| 75 StubDelegate* stub = new StubDelegate(); // Manages its own lifetime. | 75 StubDelegate* stub = new StubDelegate(); // Manages its own lifetime. |
| 76 stub->set_fetcher(SignedSettings::CreateRetrievePolicyOp(stub)); | 76 stub->set_fetcher(SignedSettings::CreateRetrievePolicyOp(stub)); |
| 77 stub->fetcher()->Execute(); | 77 stub->fetcher()->Execute(); |
| 78 } | 78 } |
| 79 } | 79 } |
| 80 | 80 |
| 81 } // namespace chromeos | 81 } // namespace chromeos |
| OLD | NEW |