| Index: chrome/browser/extensions/extension_service.cc
|
| diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
|
| index 83e1a881fedeb66068649a09d60a756e5bce9af9..5ff35e875c2b187ddcb9abce3ec19de554e5d35b 100644
|
| --- a/chrome/browser/extensions/extension_service.cc
|
| +++ b/chrome/browser/extensions/extension_service.cc
|
| @@ -160,17 +160,6 @@ enum ExternalExtensionEvent {
|
| EXTERNAL_EXTENSION_BUCKET_BOUNDARY,
|
| };
|
|
|
| -#if defined(OS_LINUX)
|
| -static const int kOmniboxIconPaddingLeft = 2;
|
| -static const int kOmniboxIconPaddingRight = 2;
|
| -#elif defined(OS_MACOSX)
|
| -static const int kOmniboxIconPaddingLeft = 0;
|
| -static const int kOmniboxIconPaddingRight = 2;
|
| -#else
|
| -static const int kOmniboxIconPaddingLeft = 0;
|
| -static const int kOmniboxIconPaddingRight = 0;
|
| -#endif
|
| -
|
| // Prompt the user this many times before considering an extension acknowledged.
|
| static const int kMaxExtensionAcknowledgePromptCount = 3;
|
|
|
| @@ -437,12 +426,6 @@ ExtensionService::ExtensionService(Profile* profile,
|
| }
|
| }
|
|
|
| - // Use monochrome icons for Omnibox icons.
|
| - omnibox_popup_icon_manager_.set_monochrome(true);
|
| - omnibox_icon_manager_.set_monochrome(true);
|
| - omnibox_icon_manager_.set_padding(gfx::Insets(0, kOmniboxIconPaddingLeft,
|
| - 0, kOmniboxIconPaddingRight));
|
| -
|
| // Set this as the ExtensionService for extension sorting to ensure it
|
| // cause syncs if required.
|
| extension_prefs_->extension_sorting()->SetExtensionService(this);
|
| @@ -1115,13 +1098,6 @@ void ExtensionService::NotifyExtensionLoaded(const Extension* extension) {
|
| if (url_service)
|
| url_service->RegisterExtensionKeyword(extension);
|
|
|
| - // Load the icon for omnibox-enabled extensions so it will be ready to display
|
| - // in the URL bar.
|
| - if (!extension->omnibox_keyword().empty()) {
|
| - omnibox_popup_icon_manager_.LoadIcon(extension);
|
| - omnibox_icon_manager_.LoadIcon(extension);
|
| - }
|
| -
|
| // If the extension has permission to load chrome://favicon/ resources we need
|
| // to make sure that the FaviconSource is registered with the
|
| // ChromeURLDataManager.
|
| @@ -2625,16 +2601,6 @@ bool ExtensionService::ShouldBlockUrlInBrowserTab(GURL* url) {
|
| return false;
|
| }
|
|
|
| -gfx::Image ExtensionService::GetOmniboxIcon(
|
| - const std::string& extension_id) {
|
| - return gfx::Image(omnibox_icon_manager_.GetIcon(extension_id));
|
| -}
|
| -
|
| -gfx::Image ExtensionService::GetOmniboxPopupIcon(
|
| - const std::string& extension_id) {
|
| - return gfx::Image(omnibox_popup_icon_manager_.GetIcon(extension_id));
|
| -}
|
| -
|
| bool ExtensionService::OnExternalExtensionFileFound(
|
| const std::string& id,
|
| const Version* version,
|
|
|