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

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

Issue 10801006: Allow secondary tiles to be unpinned. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove NULL check Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/browser_commands.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/app/chrome_command_ids.h" 7 #include "chrome/app/chrome_command_ids.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/defaults.h" 9 #include "chrome/browser/defaults.h"
10 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 break; 345 break;
346 346
347 // Page-related commands 347 // Page-related commands
348 case IDC_SAVE_PAGE: 348 case IDC_SAVE_PAGE:
349 SavePage(browser_); 349 SavePage(browser_);
350 break; 350 break;
351 case IDC_BOOKMARK_PAGE: 351 case IDC_BOOKMARK_PAGE:
352 BookmarkCurrentPage(browser_); 352 BookmarkCurrentPage(browser_);
353 break; 353 break;
354 case IDC_PIN_TO_START_SCREEN: 354 case IDC_PIN_TO_START_SCREEN:
355 PinCurrentPageToStartScreen(browser_); 355 TogglePagePinnedToStartScreen(browser_);
356 break; 356 break;
357 case IDC_BOOKMARK_ALL_TABS: 357 case IDC_BOOKMARK_ALL_TABS:
358 BookmarkAllTabs(browser_); 358 BookmarkAllTabs(browser_);
359 break; 359 break;
360 case IDC_VIEW_SOURCE: 360 case IDC_VIEW_SOURCE:
361 ViewSelectedSource(browser_); 361 ViewSelectedSource(browser_);
362 break; 362 break;
363 case IDC_EMAIL_PAGE_LOCATION: 363 case IDC_EMAIL_PAGE_LOCATION:
364 EmailPageLocation(browser_); 364 EmailPageLocation(browser_);
365 break; 365 break;
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
1066 1066
1067 BrowserWindow* BrowserCommandController::window() { 1067 BrowserWindow* BrowserCommandController::window() {
1068 return browser_->window(); 1068 return browser_->window();
1069 } 1069 }
1070 1070
1071 Profile* BrowserCommandController::profile() { 1071 Profile* BrowserCommandController::profile() {
1072 return browser_->profile(); 1072 return browser_->profile();
1073 } 1073 }
1074 1074
1075 } // namespace chrome 1075 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/browser_commands.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698