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

Unified Diff: chrome/browser/ui/extensions/shell_window.cc

Issue 11786003: Move Icons out of Extension class (Closed) Base URL: http://git.chromium.org/chromium/src.git@dc_unref_browser_action
Patch Set: License year update Created 7 years, 11 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/ui/extensions/shell_window.cc
diff --git a/chrome/browser/ui/extensions/shell_window.cc b/chrome/browser/ui/extensions/shell_window.cc
index c930eb75c2ca6a2e365fc99a45c91c7dc5b0effc..d164018cc04dcafcea5b7ce77698da4d2c8d937c 100644
--- a/chrome/browser/ui/extensions/shell_window.cc
+++ b/chrome/browser/ui/extensions/shell_window.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -29,6 +29,7 @@
#include "chrome/browser/view_type_utils.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/extensions/api/app_window.h"
+#include "chrome/common/extensions/api/icons/icons_handler.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/extension_constants.h"
#include "chrome/common/extensions/extension_messages.h"
@@ -478,8 +479,9 @@ void ShellWindow::UpdateExtensionAppIcon() {
app_icon_loader_.reset(new ImageLoadingTracker(this));
app_icon_loader_->LoadImage(
extension(),
- extension()->GetIconResource(kPreferredIconSize,
- ExtensionIconSet::MATCH_BIGGER),
+ extensions::IconsInfo::GetIconResource(extension(),
+ kPreferredIconSize,
+ ExtensionIconSet::MATCH_BIGGER),
gfx::Size(kPreferredIconSize, kPreferredIconSize),
ImageLoadingTracker::CACHE);
}

Powered by Google App Engine
This is Rietveld 408576698