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/api/storage/managed_value_store_cache.h" | 5 #include "chrome/browser/extensions/api/storage/managed_value_store_cache.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/callback.h" | 9 #include "base/callback.h" |
10 #include "base/file_util.h" | 10 #include "base/files/file_util.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "base/scoped_observer.h" | 13 #include "base/scoped_observer.h" |
14 #include "chrome/browser/extensions/api/storage/policy_value_store.h" | 14 #include "chrome/browser/extensions/api/storage/policy_value_store.h" |
15 #include "chrome/browser/policy/profile_policy_connector.h" | 15 #include "chrome/browser/policy/profile_policy_connector.h" |
16 #include "chrome/browser/policy/profile_policy_connector_factory.h" | 16 #include "chrome/browser/policy/profile_policy_connector_factory.h" |
17 #include "chrome/browser/policy/schema_registry_service.h" | 17 #include "chrome/browser/policy/schema_registry_service.h" |
18 #include "chrome/browser/policy/schema_registry_service_factory.h" | 18 #include "chrome/browser/policy/schema_registry_service_factory.h" |
19 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
20 #include "chrome/common/extensions/api/storage/storage_schema_manifest_handler.h
" | 20 #include "chrome/common/extensions/api/storage/storage_schema_manifest_handler.h
" |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 | 368 |
369 return store; | 369 return store; |
370 } | 370 } |
371 | 371 |
372 bool ManagedValueStoreCache::HasStore(const std::string& extension_id) const { | 372 bool ManagedValueStoreCache::HasStore(const std::string& extension_id) const { |
373 // TODO(joaodasilva): move this check to a ValueStore method. | 373 // TODO(joaodasilva): move this check to a ValueStore method. |
374 return base::DirectoryExists(base_path_.AppendASCII(extension_id)); | 374 return base::DirectoryExists(base_path_.AppendASCII(extension_id)); |
375 } | 375 } |
376 | 376 |
377 } // namespace extensions | 377 } // namespace extensions |
OLD | NEW |