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

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

Issue 7835039: Implement the inline extensions/apps install UI for Cocoa. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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
Index: chrome/browser/extensions/extension_install_ui.cc
===================================================================
--- chrome/browser/extensions/extension_install_ui.cc (revision 99418)
+++ chrome/browser/extensions/extension_install_ui.cc (working copy)
@@ -38,6 +38,7 @@
#include "grit/generated_resources.h"
#include "grit/theme_resources.h"
#include "ui/base/l10n/l10n_util.h"
+#include "ui/base/resource/resource_bundle.h"
static const int kTitleIds[ExtensionInstallUI::NUM_PROMPT_TYPES] = {
IDS_EXTENSION_INSTALL_PROMPT_TITLE,
@@ -149,16 +150,17 @@
rating_fractional = 0;
}
+ ResourceBundle& rb = ResourceBundle::GetSharedInstance();
int i;
for (i = 0; i < rating_integer; i++) {
- appender(IDR_EXTENSIONS_RATING_STAR_ON, data);
+ appender(rb.GetBitmapNamed(IDR_EXTENSIONS_RATING_STAR_ON), data);
}
if (rating_fractional) {
- appender(IDR_EXTENSIONS_RATING_STAR_HALF_LEFT, data);
+ appender(rb.GetBitmapNamed(IDR_EXTENSIONS_RATING_STAR_HALF_LEFT), data);
i++;
}
for (; i < kMaxExtensionRating; i++) {
- appender(IDR_EXTENSIONS_RATING_STAR_OFF, data);
+ appender(rb.GetBitmapNamed(IDR_EXTENSIONS_RATING_STAR_OFF), data);
}
}

Powered by Google App Engine
This is Rietveld 408576698