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

Unified Diff: chrome/browser/extensions/extension_install_ui.cc

Issue 173604: Adds a default icon to the install dialog if the extension (Closed)
Patch Set: Created 11 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/resources/default_extension_icon_128.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_install_ui.cc
diff --git a/chrome/browser/extensions/extension_install_ui.cc b/chrome/browser/extensions/extension_install_ui.cc
index 1023a5a09365f98f9c58dbc04e93781730981f66..08740a523aecf18dfaea1ce12593f511aec7aa6b 100644
--- a/chrome/browser/extensions/extension_install_ui.cc
+++ b/chrome/browser/extensions/extension_install_ui.cc
@@ -7,6 +7,7 @@
#include <map>
#include "app/l10n_util.h"
+#include "app/resource_bundle.h"
#include "base/file_util.h"
#include "base/rand_util.h"
#include "chrome/browser/browser_list.h"
@@ -15,6 +16,7 @@
#include "chrome/browser/profile.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/common/extensions/extension.h"
+#include "grit/browser_resources.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
@@ -102,6 +104,11 @@ void ExtensionInstallUI::ConfirmInstall(Delegate* delegate,
}
#if defined(OS_WIN) || defined(TOOLKIT_GTK)
+ if (!install_icon) {
+ install_icon = ResourceBundle::GetSharedInstance().GetBitmapNamed(
+ IDR_DEFAULT_EXTENSION_ICON_128);
+ }
+
ShowExtensionInstallPrompt(profile_, delegate, extension, install_icon,
GetInstallWarning(extension));
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/resources/default_extension_icon_128.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698