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

Side by Side Diff: chrome/browser/extensions/extension_service.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
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/app_list_controller_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // Or don't, because it's probably not something you ever need to know. 108 // Or don't, because it's probably not something you ever need to know.
109 virtual const extensions::Extension* GetExtensionById( 109 virtual const extensions::Extension* GetExtensionById(
110 const std::string& id, 110 const std::string& id,
111 bool include_disabled) const = 0; 111 bool include_disabled) const = 0;
112 112
113 // DEPRECATED: Use ExtensionRegistry instead. 113 // DEPRECATED: Use ExtensionRegistry instead.
114 // 114 //
115 // Looks up an extension by ID, regardless of whether it's enabled, 115 // Looks up an extension by ID, regardless of whether it's enabled,
116 // disabled, blacklisted, or terminated. Use instead: 116 // disabled, blacklisted, or terminated. Use instead:
117 // 117 //
118 // ExtensionRegistry::GetExtensionById(id, ExtensionRegistry::EVERYTHING). 118 // ExtensionRegistry::GetInstalledExtension(id).
119 virtual const extensions::Extension* GetInstalledExtension( 119 virtual const extensions::Extension* GetInstalledExtension(
120 const std::string& id) const = 0; 120 const std::string& id) const = 0;
121 121
122 // Returns an update for an extension with the specified id, if installation 122 // Returns an update for an extension with the specified id, if installation
123 // of that update was previously delayed because the extension was in use. If 123 // of that update was previously delayed because the extension was in use. If
124 // no updates are pending for the extension returns NULL. 124 // no updates are pending for the extension returns NULL.
125 virtual const extensions::Extension* GetPendingExtensionUpdate( 125 virtual const extensions::Extension* GetPendingExtensionUpdate(
126 const std::string& extension_id) const = 0; 126 const std::string& extension_id) const = 0;
127 127
128 // Finishes installation of an update for an extension with the specified id, 128 // Finishes installation of an update for an extension with the specified id,
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 GreylistUnknownDontChange); 764 GreylistUnknownDontChange);
765 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 765 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
766 ManagementPolicyProhibitsEnableOnInstalled); 766 ManagementPolicyProhibitsEnableOnInstalled);
767 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 767 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
768 BlockAndUnblockBlacklistedExtension); 768 BlockAndUnblockBlacklistedExtension);
769 769
770 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 770 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
771 }; 771 };
772 772
773 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 773 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/app_list_controller_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698