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

Unified Diff: ash/wm/app_list_controller.cc

Issue 10868003: chromeos: Fix pixelated icons in app list and launcher (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win compile Created 8 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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_icon_image.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/app_list_controller.cc
diff --git a/ash/wm/app_list_controller.cc b/ash/wm/app_list_controller.cc
index 468a97b540d3fcf1f41108ff9c568f1d38c88ae7..5ae14a9791b046c43099b3d9039e754ae902a274 100644
--- a/ash/wm/app_list_controller.cc
+++ b/ash/wm/app_list_controller.cc
@@ -12,7 +12,6 @@
#include "ash/wm/property_util.h"
#include "ash/wm/shelf_layout_manager.h"
#include "ui/app_list/app_list_view.h"
-#include "ui/app_list/icon_cache.h"
#include "ui/app_list/pagination_model.h"
#include "ui/aura/focus_manager.h"
#include "ui/aura/root_window.h"
@@ -87,7 +86,6 @@ AppListController::AppListController()
: pagination_model_(new app_list::PaginationModel),
is_visible_(false),
view_(NULL) {
- app_list::IconCache::CreateInstance();
Shell::GetInstance()->AddShellObserver(this);
}
@@ -97,7 +95,6 @@ AppListController::~AppListController() {
if (view_ && view_->GetWidget())
view_->GetWidget()->CloseNow();
- app_list::IconCache::DeleteInstance();
Shell::GetInstance()->RemoveShellObserver(this);
}
@@ -144,8 +141,6 @@ void AppListController::SetView(app_list::AppListView* view) {
DCHECK(view_ == NULL);
if (is_visible_) {
- app_list::IconCache::GetInstance()->MarkAllEntryUnused();
-
view_ = view;
views::Widget* widget = view_->GetWidget();
widget->AddObserver(this);
@@ -174,8 +169,6 @@ void AppListController::ResetView() {
widget->GetNativeView()->GetRootWindow()->RemoveRootWindowObserver(this);
widget->GetNativeView()->GetFocusManager()->RemoveObserver(this);
view_ = NULL;
-
- app_list::IconCache::GetInstance()->PurgeAllUnused();
}
void AppListController::ScheduleAnimation() {
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_icon_image.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698