| 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/extensions/settings/managed_value_store_cache.h" | 5 #include "chrome/browser/extensions/api/storage/managed_value_store_cache.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/message_loop_proxy.h" | 14 #include "base/message_loop_proxy.h" |
| 15 #include "chrome/browser/extensions/api/storage/policy_value_store.h" |
| 16 #include "chrome/browser/extensions/api/storage/settings_storage_factory.h" |
| 15 #include "chrome/browser/extensions/event_names.h" | 17 #include "chrome/browser/extensions/event_names.h" |
| 16 #include "chrome/browser/extensions/extension_service.h" | 18 #include "chrome/browser/extensions/extension_service.h" |
| 17 #include "chrome/browser/extensions/settings/policy_value_store.h" | |
| 18 #include "chrome/browser/extensions/settings/settings_storage_factory.h" | |
| 19 #include "chrome/browser/value_store/value_store_change.h" | 19 #include "chrome/browser/value_store/value_store_change.h" |
| 20 #include "chrome/common/extensions/extension.h" | 20 #include "chrome/common/extensions/extension.h" |
| 21 #include "content/public/browser/browser_thread.h" | 21 #include "content/public/browser/browser_thread.h" |
| 22 | 22 |
| 23 using content::BrowserThread; | 23 using content::BrowserThread; |
| 24 | 24 |
| 25 namespace extensions { | 25 namespace extensions { |
| 26 | 26 |
| 27 ManagedValueStoreCache::ManagedValueStoreCache( | 27 ManagedValueStoreCache::ManagedValueStoreCache( |
| 28 policy::PolicyService* policy_service, | 28 policy::PolicyService* policy_service, |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 | 241 |
| 242 // Send the latest policy to the store. | 242 // Send the latest policy to the store. |
| 243 store->SetCurrentPolicy(*initial_policy, notify_if_changed); | 243 store->SetCurrentPolicy(*initial_policy, notify_if_changed); |
| 244 | 244 |
| 245 // And finally resume from where this process started. | 245 // And finally resume from where this process started. |
| 246 if (!continuation.is_null()) | 246 if (!continuation.is_null()) |
| 247 continuation.Run(); | 247 continuation.Run(); |
| 248 } | 248 } |
| 249 | 249 |
| 250 } // namespace extensions | 250 } // namespace extensions |
| OLD | NEW |