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

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

Issue 6254007: Adding ChromeVox as a component extensions (enabled only for ChromeOS, for no... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | 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/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 : background_page_ready(false), 167 : background_page_ready(false),
168 being_upgraded(false) { 168 being_upgraded(false) {
169 } 169 }
170 170
171 ExtensionService::ExtensionRuntimeData::~ExtensionRuntimeData() { 171 ExtensionService::ExtensionRuntimeData::~ExtensionRuntimeData() {
172 } 172 }
173 173
174 // ExtensionService. 174 // ExtensionService.
175 175
176 const char* ExtensionService::kInstallDirectoryName = "Extensions"; 176 const char* ExtensionService::kInstallDirectoryName = "Extensions";
177 const char* ExtensionService::kAccessibilityInstallDirectoryName =
178 "Accessibility-Extensions";
177 const char* ExtensionService::kCurrentVersionFileName = "Current Version"; 179 const char* ExtensionService::kCurrentVersionFileName = "Current Version";
178 180
179 // Implements IO for the ExtensionService. 181 // Implements IO for the ExtensionService.
180 182
181 class ExtensionServiceBackend 183 class ExtensionServiceBackend
182 : public base::RefCountedThreadSafe<ExtensionServiceBackend> { 184 : public base::RefCountedThreadSafe<ExtensionServiceBackend> {
183 public: 185 public:
184 // |install_directory| is a path where to look for extensions to load. 186 // |install_directory| is a path where to look for extensions to load.
185 explicit ExtensionServiceBackend(const FilePath& install_directory); 187 explicit ExtensionServiceBackend(const FilePath& install_directory);
186 188
(...skipping 1791 matching lines...) Expand 10 before | Expand all | Expand 10 after
1978 } 1980 }
1979 1981
1980 void ExtensionService::SetBeingUpgraded(const Extension* extension, 1982 void ExtensionService::SetBeingUpgraded(const Extension* extension,
1981 bool value) { 1983 bool value) {
1982 extension_runtime_data_[extension->id()].being_upgraded = value; 1984 extension_runtime_data_[extension->id()].being_upgraded = value;
1983 } 1985 }
1984 1986
1985 PropertyBag* ExtensionService::GetPropertyBag(const Extension* extension) { 1987 PropertyBag* ExtensionService::GetPropertyBag(const Extension* extension) {
1986 return &extension_runtime_data_[extension->id()].property_bag; 1988 return &extension_runtime_data_[extension->id()].property_bag;
1987 } 1989 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698