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

Side by Side Diff: chrome/browser/ui/browser_command_controller.cc

Issue 1124153007: Added the Ash.Tab.TimeBetweenSwitchToExistingTabUserActions histogram to track time between tab swit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the branch that the diff was based on. Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/browser_command_controller.h" 5 #include "chrome/browser/ui/browser_command_controller.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "chrome/app/chrome_command_ids.h" 9 #include "chrome/app/chrome_command_ids.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 case IDC_NEW_TAB: 418 case IDC_NEW_TAB:
419 NewTab(browser_); 419 NewTab(browser_);
420 break; 420 break;
421 case IDC_CLOSE_TAB: 421 case IDC_CLOSE_TAB:
422 content::RecordAction(base::UserMetricsAction("CloseTabByKey")); 422 content::RecordAction(base::UserMetricsAction("CloseTabByKey"));
423 CloseTab(browser_); 423 CloseTab(browser_);
424 break; 424 break;
425 case IDC_SELECT_NEXT_TAB: 425 case IDC_SELECT_NEXT_TAB:
426 content::RecordAction(base::UserMetricsAction("Accel_SelectNextTab")); 426 content::RecordAction(base::UserMetricsAction("Accel_SelectNextTab"));
427 SelectNextTab(browser_); 427 SelectNextTab(browser_);
428 // TODO(bruthig):
428 break; 429 break;
429 case IDC_SELECT_PREVIOUS_TAB: 430 case IDC_SELECT_PREVIOUS_TAB:
430 content::RecordAction( 431 content::RecordAction(
431 base::UserMetricsAction("Accel_SelectPreviousTab")); 432 base::UserMetricsAction("Accel_SelectPreviousTab"));
432 SelectPreviousTab(browser_); 433 SelectPreviousTab(browser_);
434 // TODO(bruthig):
433 break; 435 break;
434 case IDC_MOVE_TAB_NEXT: 436 case IDC_MOVE_TAB_NEXT:
435 MoveTabNext(browser_); 437 MoveTabNext(browser_);
436 break; 438 break;
437 case IDC_MOVE_TAB_PREVIOUS: 439 case IDC_MOVE_TAB_PREVIOUS:
438 MoveTabPrevious(browser_); 440 MoveTabPrevious(browser_);
439 break; 441 break;
440 case IDC_SELECT_TAB_0: 442 case IDC_SELECT_TAB_0:
441 case IDC_SELECT_TAB_1: 443 case IDC_SELECT_TAB_1:
442 case IDC_SELECT_TAB_2: 444 case IDC_SELECT_TAB_2:
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after
1357 1359
1358 BrowserWindow* BrowserCommandController::window() { 1360 BrowserWindow* BrowserCommandController::window() {
1359 return browser_->window(); 1361 return browser_->window();
1360 } 1362 }
1361 1363
1362 Profile* BrowserCommandController::profile() { 1364 Profile* BrowserCommandController::profile() {
1363 return browser_->profile(); 1365 return browser_->profile();
1364 } 1366 }
1365 1367
1366 } // namespace chrome 1368 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698