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

Side by Side Diff: extensions/browser/extension_registry.h

Issue 1130353010: Remove deprecated ExtensionService::GetInstalledExtension() usage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed if to iff Created 5 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // Find an extension by ID using |include_mask| to pick the sets to search: 116 // Find an extension by ID using |include_mask| to pick the sets to search:
117 // * enabled_extensions() --> ExtensionRegistry::ENABLED 117 // * enabled_extensions() --> ExtensionRegistry::ENABLED
118 // * disabled_extensions() --> ExtensionRegistry::DISABLED 118 // * disabled_extensions() --> ExtensionRegistry::DISABLED
119 // * terminated_extensions() --> ExtensionRegistry::TERMINATED 119 // * terminated_extensions() --> ExtensionRegistry::TERMINATED
120 // * blacklisted_extensions() --> ExtensionRegistry::BLACKLISTED 120 // * blacklisted_extensions() --> ExtensionRegistry::BLACKLISTED
121 // * blocked_extensions() --> ExtensionRegistry::BLOCKED 121 // * blocked_extensions() --> ExtensionRegistry::BLOCKED
122 // Returns NULL if the extension is not found in the selected sets. 122 // Returns NULL if the extension is not found in the selected sets.
123 const Extension* GetExtensionById(const std::string& id, 123 const Extension* GetExtensionById(const std::string& id,
124 int include_mask) const; 124 int include_mask) const;
125 125
126 // Looks up an extension by ID, regardless of whether it's enabled,
127 // disabled, blacklisted, or terminated.
128 const Extension* GetInstalledExtension(const std::string& id) const;
129
126 // Adds the specified extension to the enabled set. The registry becomes an 130 // Adds the specified extension to the enabled set. The registry becomes an
127 // owner. Any previous extension with the same ID is removed. 131 // owner. Any previous extension with the same ID is removed.
128 // Returns true if there is no previous extension. 132 // Returns true if there is no previous extension.
129 // NOTE: You probably want to use ExtensionService instead of calling this 133 // NOTE: You probably want to use ExtensionService instead of calling this
130 // method directly. 134 // method directly.
131 bool AddEnabled(const scoped_refptr<const Extension>& extension); 135 bool AddEnabled(const scoped_refptr<const Extension>& extension);
132 136
133 // Removes the specified extension from the enabled set. 137 // Removes the specified extension from the enabled set.
134 // Returns true if the set contained the specified extension. 138 // Returns true if the set contained the specified extension.
135 // NOTE: You probably want to use ExtensionService instead of calling this 139 // NOTE: You probably want to use ExtensionService instead of calling this
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 base::ObserverList<ExtensionRegistryObserver> observers_; 190 base::ObserverList<ExtensionRegistryObserver> observers_;
187 191
188 content::BrowserContext* const browser_context_; 192 content::BrowserContext* const browser_context_;
189 193
190 DISALLOW_COPY_AND_ASSIGN(ExtensionRegistry); 194 DISALLOW_COPY_AND_ASSIGN(ExtensionRegistry);
191 }; 195 };
192 196
193 } // namespace extensions 197 } // namespace extensions
194 198
195 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ 199 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/search/app_result.cc ('k') | extensions/browser/extension_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698