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

Unified Diff: chrome/browser/ui/views/exclusive_access_bubble_views.cc

Issue 903683005: Always prompt for permission on fullscreen and mouse lock on file:// URLs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated Mac UI for fullscreen on file:// URLs Created 5 years, 10 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
Index: chrome/browser/ui/views/exclusive_access_bubble_views.cc
diff --git a/chrome/browser/ui/views/exclusive_access_bubble_views.cc b/chrome/browser/ui/views/exclusive_access_bubble_views.cc
index 902bdc2f55390f5e57b08486aac51f5ce219217d..88035ff64469a4a79e55e2cfec363e74c8c4764f 100644
--- a/chrome/browser/ui/views/exclusive_access_bubble_views.cc
+++ b/chrome/browser/ui/views/exclusive_access_bubble_views.cc
@@ -166,7 +166,6 @@ ExclusiveAccessBubbleViews::ExclusiveAccessView::ExclusiveAccessView(
mouse_lock_exit_instruction_->SetBackgroundColor(background()->get_color());
button_view_ = new ButtonView(this, kPaddingPx);
- button_view_->accept_button()->SetText(bubble->GetAllowButtonText());
views::GridLayout* layout = new views::GridLayout(this);
views::ColumnSet* columns = layout->AddColumnSet(0);
@@ -224,6 +223,9 @@ void ExclusiveAccessBubbleViews::ExclusiveAccessView::UpdateContent(
button_view_->SetVisible(true);
button_view_->deny_button()->SetText(bubble_->GetCurrentDenyButtonText());
button_view_->deny_button()->SetMinSize(gfx::Size());
+ button_view_->accept_button()->SetText(
+ bubble_->GetCurrentAllowButtonText());
+ button_view_->accept_button()->SetMinSize(gfx::Size());
} else {
bool link_visible = true;
base::string16 accelerator;

Powered by Google App Engine
This is Rietveld 408576698