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

Unified Diff: chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.mm

Issue 2540523003: Use standardized accelerator-to-shortcut code for new backspace shortcut UI. (Closed)
Patch Set: Created 4 years, 1 month 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
Index: chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.mm
diff --git a/chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.mm b/chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.mm
index cbe83eba2422f154f8ba0a903fff38348e742f9b..bc454b8d5fd4a1dc762231c189abbc4b0b960235 100644
--- a/chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.mm
+++ b/chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.mm
@@ -40,7 +40,7 @@ void ExclusiveAccessController::Show() {
views_bubble_.reset(new ExclusiveAccessBubbleViews(this, url_, bubble_type_));
}
-void ExclusiveAccessController::MaybeShowNewBackShortcutBubble(bool forward) {
+void ExclusiveAccessController::MaybeShowNewBackShortcutBubble(int command_id) {
if (!new_back_shortcut_bubble_ || !new_back_shortcut_bubble_->IsVisible()) {
// Show the bubble at most five times.
PrefService* prefs = GetProfile()->GetPrefs();
@@ -67,7 +67,7 @@ void ExclusiveAccessController::MaybeShowNewBackShortcutBubble(bool forward) {
last_back_shortcut_press_time_ = base::TimeTicks();
}
- new_back_shortcut_bubble_->UpdateContent(forward);
+ new_back_shortcut_bubble_->UpdateContent(command_id);
}
void ExclusiveAccessController::HideNewBackShortcutBubble() {

Powered by Google App Engine
This is Rietveld 408576698