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

Side by Side Diff: chrome/browser/extensions/api/storage/managed_value_store_cache.cc

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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
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/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/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 25 matching lines...) Expand all
36 #include "extensions/common/manifest.h" 36 #include "extensions/common/manifest.h"
37 #include "extensions/common/manifest_constants.h" 37 #include "extensions/common/manifest_constants.h"
38 #include "extensions/common/one_shot_event.h" 38 #include "extensions/common/one_shot_event.h"
39 39
40 using content::BrowserContext; 40 using content::BrowserContext;
41 using content::BrowserThread; 41 using content::BrowserThread;
42 42
43 namespace extensions { 43 namespace extensions {
44 class ExtensionRegistry; 44 class ExtensionRegistry;
45 45
46 namespace storage = core_api::storage; 46 namespace storage = api::storage;
47 47
48 namespace { 48 namespace {
49 49
50 const char kLoadSchemasBackgroundTaskTokenName[] = 50 const char kLoadSchemasBackgroundTaskTokenName[] =
51 "load_managed_storage_schemas_token"; 51 "load_managed_storage_schemas_token";
52 52
53 // The Legacy Browser Support was the first user of the policy-for-extensions 53 // The Legacy Browser Support was the first user of the policy-for-extensions
54 // API, and relied on behavior that will be phased out. If this extension is 54 // API, and relied on behavior that will be phased out. If this extension is
55 // present then its policies will be loaded in a special way. 55 // present then its policies will be loaded in a special way.
56 // TODO(joaodasilva): remove this for M35. http://crbug.com/325349 56 // TODO(joaodasilva): remove this for M35. http://crbug.com/325349
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 367
368 return store; 368 return store;
369 } 369 }
370 370
371 bool ManagedValueStoreCache::HasStore(const std::string& extension_id) const { 371 bool ManagedValueStoreCache::HasStore(const std::string& extension_id) const {
372 // TODO(joaodasilva): move this check to a ValueStore method. 372 // TODO(joaodasilva): move this check to a ValueStore method.
373 return base::DirectoryExists(base_path_.AppendASCII(extension_id)); 373 return base::DirectoryExists(base_path_.AppendASCII(extension_id));
374 } 374 }
375 375
376 } // namespace extensions 376 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698