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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.cc

Issue 2641403002: [refactor] - Move IsFocusedElementEditable() and ClearFocusedElement() from RenderViewHost to WebCo… (Closed)
Patch Set: Addressed sky@'s comment Created 3 years, 11 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/location_bar/location_bar_bubble_delegate_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.cc b/chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.cc
index b625633bc86d81ee933f72a63c71017cc7b923e5..27543b4e2af1d075ea2066b1c7d8963483d8bd2a 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.cc
@@ -30,7 +30,7 @@ LocationBarBubbleDelegateView::WebContentMouseHandler::
void LocationBarBubbleDelegateView::WebContentMouseHandler::OnKeyEvent(
ui::KeyEvent* event) {
if ((event->key_code() == ui::VKEY_ESCAPE ||
- web_contents_->GetRenderViewHost()->IsFocusedElementEditable()) &&
+ web_contents_->IsFocusedElementEditable()) &&
event->type() == ui::ET_KEY_PRESSED)
bubble_->CloseBubble();
}

Powered by Google App Engine
This is Rietveld 408576698