| Index: chrome/browser/extensions/extension_uninstall_dialog.cc
|
| diff --git a/chrome/browser/extensions/extension_uninstall_dialog.cc b/chrome/browser/extensions/extension_uninstall_dialog.cc
|
| index 0059ef7c72974e3cdd68bc0e5f9a3c44670bdd0c..f05733b56dee020c5d6962961128d464789e2bb2 100644
|
| --- a/chrome/browser/extensions/extension_uninstall_dialog.cc
|
| +++ b/chrome/browser/extensions/extension_uninstall_dialog.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.
|
|
|
| @@ -7,6 +7,7 @@
|
| #include "base/logging.h"
|
| #include "base/message_loop.h"
|
| #include "chrome/common/chrome_notification_types.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_icon_set.h"
|
| @@ -32,7 +33,7 @@ int GetSizeForMaxScaleFactor(int size_in_dip) {
|
| // Returns bitmap for the default icon with size equal to the default icon's
|
| // pixel size under maximal supported scale factor.
|
| SkBitmap GetDefaultIconBitmapForMaxScaleFactor(bool is_app) {
|
| - return extensions::Extension::GetDefaultIcon(is_app).
|
| + return extensions::IconsInfo::GetDefaultIcon(is_app).
|
| GetRepresentation(ui::GetMaxScaleFactor()).sk_bitmap();
|
| }
|
|
|
| @@ -63,9 +64,10 @@ void ExtensionUninstallDialog::ConfirmUninstall(
|
| DCHECK(ui_loop_ == MessageLoop::current());
|
| extension_ = extension;
|
|
|
| - ExtensionResource image =
|
| - extension_->GetIconResource(extension_misc::EXTENSION_ICON_LARGE,
|
| - ExtensionIconSet::MATCH_BIGGER);
|
| + ExtensionResource image = extensions::IconsInfo::GetIconResource(
|
| + extension,
|
| + extension_misc::EXTENSION_ICON_LARGE,
|
| + ExtensionIconSet::MATCH_BIGGER);
|
| // Load the image asynchronously. The response will be sent to OnImageLoaded.
|
| tracker_.reset(new ImageLoadingTracker(this));
|
| // Load the icon whose pixel size is large enough to be displayed under
|
|
|