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

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

Issue 10453101: Convert most of the rest of chrome to ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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/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 6965c6be7e69907ee8625a59e3e3e2cfd29a1cc3..3501404c9fcb66606eced58ad4d456e78dec8e5e 100644
--- a/chrome/browser/background/background_application_list_model.cc
+++ b/chrome/browser/background/background_application_list_model.cc
@@ -10,9 +10,9 @@
#include "base/stl_util.h"
#include "base/utf_string_conversions.h"
#include "chrome/app/chrome_command_ids.h"
-#include "chrome/browser/background/background_mode_manager.h"
#include "chrome/browser/background/background_contents_service.h"
#include "chrome/browser/background/background_contents_service_factory.h"
+#include "chrome/browser/background/background_mode_manager.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/extensions/extension_prefs.h"
#include "chrome/browser/extensions/extension_service.h"
@@ -26,6 +26,7 @@
#include "content/public/browser/notification_source.h"
#include "ui/base/l10n/l10n_util_collator.h"
#include "ui/gfx/image/image.h"
+#include "ui/gfx/image/image_skia.h"
using extensions::Extension;
using extensions::ExtensionList;
@@ -72,7 +73,7 @@ class BackgroundApplicationListModel::Application
void RequestIcon(ExtensionIconSet::Icons size);
const Extension* extension_;
- scoped_ptr<SkBitmap> icon_;
+ scoped_ptr<gfx::ImageSkia> icon_;
BackgroundApplicationListModel* model_;
ImageLoadingTracker tracker_;
};
@@ -146,7 +147,7 @@ void BackgroundApplicationListModel::Application::OnImageLoaded(
int index) {
if (image.IsEmpty())
return;
- icon_.reset(image.CopySkBitmap());
+ icon_.reset(image.CopyImageSkia());
model_->SendApplicationDataChangedNotifications(extension_);
}
@@ -240,7 +241,7 @@ BackgroundApplicationListModel::FindApplication(
return (found == applications_.end()) ? NULL : found->second;
}
-const SkBitmap* BackgroundApplicationListModel::GetIcon(
+const gfx::ImageSkia* BackgroundApplicationListModel::GetIcon(
const Extension* extension) {
const Application* application = FindApplication(extension);
if (application)
« no previous file with comments | « chrome/browser/background/background_application_list_model.h ('k') | chrome/browser/background/background_mode_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698