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

Side by Side Diff: chrome/browser/extensions/extension_service.cc

Issue 8375047: Separate the syncing of extension settings and app settings into separate data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/extension_service.h" 5 #include "chrome/browser/extensions/extension_service.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 238
239 ExtensionService::NaClModuleInfo::NaClModuleInfo() { 239 ExtensionService::NaClModuleInfo::NaClModuleInfo() {
240 } 240 }
241 241
242 ExtensionService::NaClModuleInfo::~NaClModuleInfo() { 242 ExtensionService::NaClModuleInfo::~NaClModuleInfo() {
243 } 243 }
244 244
245 // ExtensionService. 245 // ExtensionService.
246 246
247 const char* ExtensionService::kInstallDirectoryName = "Extensions"; 247 const char* ExtensionService::kInstallDirectoryName = "Extensions";
248 const char* ExtensionService::kSettingsDirectoryName = "Extension Settings"; 248 const char* ExtensionService::kExtensionSettingsDirectoryName =
249 "Extension Settings";
250 const char* ExtensionService::kAppSettingsDirectoryName = "App Settings";
249 251
250 // Implements IO for the ExtensionService. 252 // Implements IO for the ExtensionService.
251 253
252 class ExtensionServiceBackend 254 class ExtensionServiceBackend
253 : public base::RefCountedThreadSafe<ExtensionServiceBackend> { 255 : public base::RefCountedThreadSafe<ExtensionServiceBackend> {
254 public: 256 public:
255 // |install_directory| is a path where to look for extensions to load. 257 // |install_directory| is a path where to look for extensions to load.
256 ExtensionServiceBackend( 258 ExtensionServiceBackend(
257 base::WeakPtr<ExtensionService> frontend, 259 base::WeakPtr<ExtensionService> frontend,
258 const FilePath& install_directory); 260 const FilePath& install_directory);
(...skipping 2766 matching lines...) Expand 10 before | Expand all | Expand 10 after
3025 3027
3026 ExtensionService::NaClModuleInfoList::iterator 3028 ExtensionService::NaClModuleInfoList::iterator
3027 ExtensionService::FindNaClModule(const GURL& url) { 3029 ExtensionService::FindNaClModule(const GURL& url) {
3028 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin(); 3030 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin();
3029 iter != nacl_module_list_.end(); ++iter) { 3031 iter != nacl_module_list_.end(); ++iter) {
3030 if (iter->url == url) 3032 if (iter->url == url)
3031 return iter; 3033 return iter;
3032 } 3034 }
3033 return nacl_module_list_.end(); 3035 return nacl_module_list_.end();
3034 } 3036 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698