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

Unified Diff: ash/shelf/shelf_view.cc

Issue 1100763002: Inject CanAddURLToHistory into TopSitesImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs
Patch Set: Fix error introduced during rebase Created 5 years, 8 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 | « ash/rotator/screen_rotation_animator.cc ('k') | ash/shelf/shelf_view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_view.cc
diff --git a/ash/shelf/shelf_view.cc b/ash/shelf/shelf_view.cc
index 06d6dd41ef1ba99601b3436417df550b8acaa3c5..f46233c74f0a3d2c5ff0e13779108f2fb591e263 100644
--- a/ash/shelf/shelf_view.cc
+++ b/ash/shelf/shelf_view.cc
@@ -1768,7 +1768,6 @@ void ShelfView::RecordIconActivatedAction(
ShelfItemDelegate::PerformedAction performed_action) {
switch (performed_action) {
case ShelfItemDelegate::kNoAction:
- case ShelfItemDelegate::kExistingWindowMinimized:
case ShelfItemDelegate::kAppListMenuShown:
break;
case ShelfItemDelegate::kNewWindowCreated:
@@ -1779,6 +1778,10 @@ void ShelfView::RecordIconActivatedAction(
Shell::GetInstance()->metrics()->RecordUserMetricsAction(
UMA_LAUNCHER_SWITCH_TASK);
break;
+ case ShelfItemDelegate::kExistingWindowMinimized:
+ Shell::GetInstance()->metrics()->RecordUserMetricsAction(
+ UMA_LAUNCHER_MINIMIZE_TASK);
+ break;
}
}
« no previous file with comments | « ash/rotator/screen_rotation_animator.cc ('k') | ash/shelf/shelf_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698