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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_view_views.cc

Issue 197623002: [OriginChip] Show the page info bubble on the location bar icon. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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/omnibox/omnibox_view_views.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
index 7ba9f7437059fcea26d70ecfb24b0287c86d79a2..76352f1428624859a2f00dfb40cbb1a23b5830c5 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
@@ -21,6 +21,7 @@
#include "chrome/browser/ui/view_ids.h"
#include "chrome/browser/ui/views/location_bar/location_bar_view.h"
#include "chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h"
+#include "chrome/browser/ui/views/website_settings/website_settings_popup_view.h"
#include "chrome/common/chrome_switches.h"
#include "content/public/browser/web_contents.h"
#include "extensions/common/constants.h"
@@ -417,12 +418,14 @@ void OmniboxViewViews::OnBlur() {
// Tell the model to reset itself.
model()->OnKillFocus();
- // If user input is not in progress, re-enable the origin chip and URL
- // replacement. This addresses the case where the URL was shown by a call
- // to ShowURL(). If the Omnibox achieved focus by other means, the calls to
- // set_url_replacement_enabled, UpdatePermanentText and RevertAll are not
- // required (a call to OnChanged would be sufficient) but do no harm.
+ // If user input is not in progress and the website settings popup is not
+ // being shown, re-enable the origin chip and URL replacement. This addresses
+ // the case where the URL was shown by a call to ShowURL(). If the Omnibox
+ // achieved focus by other means, the calls to set_url_replacement_enabled,
+ // UpdatePermanentText and RevertAll are not required (a call to OnChanged
+ // would be sufficient) but do no harm.
if (chrome::ShouldDisplayOriginChipV2() &&
+ !WebsiteSettingsPopupView::IsPopupShowing() &&
Peter Kasting 2014/03/12 21:11:27 Adding this worries me because I'm concerned the o
Justin Donnelly 2014/03/14 15:27:51 The way this behaves (tested in Linux, CrOS and Wi
Peter Kasting 2014/03/18 01:23:13 What if we just left this line out? If you've hid
Justin Donnelly 2014/03/18 15:54:48 Yeah, I initially tried this. It's not horrible,
!model()->user_input_in_progress()) {
controller()->GetToolbarModel()->set_origin_chip_enabled(true);
controller()->GetToolbarModel()->set_url_replacement_enabled(true);

Powered by Google App Engine
This is Rietveld 408576698