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

Unified Diff: chrome/browser/tabs/tab_strip_model.cc

Issue 122012: Reload All tabs feature... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « chrome/browser/tabs/tab_strip_model.h ('k') | chrome/browser/views/tabs/tab.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tabs/tab_strip_model.cc
===================================================================
--- chrome/browser/tabs/tab_strip_model.cc (revision 18128)
+++ chrome/browser/tabs/tab_strip_model.cc (working copy)
@@ -405,6 +405,7 @@
case CommandReload:
case CommandCloseTab:
return true;
+ case CommandReloadAll:
case CommandCloseOtherTabs:
return count() > 1;
case CommandCloseTabsToRight:
@@ -436,6 +437,12 @@
UserMetrics::RecordAction(L"TabContextMenu_Reload", profile_);
GetContentsAt(context_index)->controller().Reload(true);
break;
+ case CommandReloadAll: {
+ UserMetrics::RecordAction(L"TabContextMenu_ReloadAll", profile_);
+ for (int i = count() - 1; i >= 0; --i)
+ GetContentsAt(i)->controller().Reload(true);
+ break;
+ }
case CommandDuplicate:
UserMetrics::RecordAction(L"TabContextMenu_Duplicate", profile_);
delegate_->DuplicateContentsAt(context_index);
« no previous file with comments | « chrome/browser/tabs/tab_strip_model.h ('k') | chrome/browser/views/tabs/tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698