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

Unified Diff: chrome/browser/background/background_application_list_model.cc

Issue 10843014: Generalize ExtensionIconSet to store icon paths for custom size sets (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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 | « no previous file | chrome/browser/background/background_contents_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/background/background_application_list_model.cc
diff --git a/chrome/browser/background/background_application_list_model.cc b/chrome/browser/background/background_application_list_model.cc
index 3cbb1145b8b55eee13e0553bb6d166b76619cee0..08b6d1c6d7f94141ae6368aa7ba932e102e6f999 100644
--- a/chrome/browser/background/background_application_list_model.cc
+++ b/chrome/browser/background/background_application_list_model.cc
@@ -20,6 +20,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/extensions/extension.h"
+#include "chrome/common/extensions/extension_constants.h"
#include "chrome/common/extensions/extension_icon_set.h"
#include "chrome/common/extensions/extension_resource.h"
#include "chrome/common/extensions/permissions/permission_set.h"
@@ -73,7 +74,7 @@ class BackgroundApplicationListModel::Application
// Uses the FILE thread to request this extension's icon, sized
// appropriately.
- void RequestIcon(ExtensionIconSet::Icons size);
+ void RequestIcon(extension_misc::ExtensionIcons size);
const Extension* extension_;
scoped_ptr<gfx::ImageSkia> icon_;
@@ -155,7 +156,7 @@ void BackgroundApplicationListModel::Application::OnImageLoaded(
}
void BackgroundApplicationListModel::Application::RequestIcon(
- ExtensionIconSet::Icons size) {
+ extension_misc::ExtensionIcons size) {
ExtensionResource resource = extension_->GetIconResource(
size, ExtensionIconSet::MATCH_BIGGER);
tracker_.LoadImage(extension_, resource, gfx::Size(size, size),
@@ -209,7 +210,7 @@ void BackgroundApplicationListModel::AssociateApplicationData(
application = new Application(this, extension);
applications_[extension->id()] = application;
Update();
- application->RequestIcon(ExtensionIconSet::EXTENSION_ICON_BITTY);
+ application->RequestIcon(extension_misc::EXTENSION_ICON_BITTY);
}
}
« no previous file with comments | « no previous file | chrome/browser/background/background_contents_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698