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

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

Issue 104003005: [OriginChip] Always show the page info bubble when clicked. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
« no previous file with comments | « chrome/browser/ui/views/location_bar/page_info_helper.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/location_bar/page_info_helper.cc
diff --git a/chrome/browser/ui/views/location_bar/page_info_helper.cc b/chrome/browser/ui/views/location_bar/page_info_helper.cc
index e8accd664b062b5619b2376a128d9677dde9eaa3..2c99ad16c3a8a6de2f0b1a810d4c946d64fd9290 100644
--- a/chrome/browser/ui/views/location_bar/page_info_helper.cc
+++ b/chrome/browser/ui/views/location_bar/page_info_helper.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/views/location_bar/page_info_helper.h"
+#include "chrome/browser/search/search.h"
#include "chrome/browser/ui/omnibox/omnibox_view.h"
#include "chrome/browser/ui/views/location_bar/location_bar_view.h"
#include "content/public/browser/navigation_controller.h"
@@ -27,7 +28,8 @@ void PageInfoHelper::ProcessEvent(const ui::LocatedEvent& event) {
// Do not show page info if the user has been editing the location
// bar, or the location bar is at the NTP.
- if (location_bar_->GetOmniboxView()->IsEditingOrEmpty())
+ if (location_bar_->GetOmniboxView()->IsEditingOrEmpty() &&
+ !chrome::ShouldDisplayOriginChip())
return;
WebContents* tab = location_bar_->GetWebContents();
« no previous file with comments | « chrome/browser/ui/views/location_bar/page_info_helper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698