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

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

Issue 287543002: Remove origin chip v1 and "hide on input" v2 behavior. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test compile Created 6 years, 7 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 088bab5048d99f63cb04e88d36f0639d81db7063..d9eb28d2eaff65e9dd93359888b14fa4d2ae71b3 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
@@ -221,7 +221,7 @@ void OmniboxViewViews::OnTabChanged(const content::WebContents* web_contents) {
}
void OmniboxViewViews::Update() {
- if (chrome::ShouldDisplayOriginChip() || chrome::ShouldDisplayOriginChipV2())
+ if (chrome::ShouldDisplayOriginChip())
set_placeholder_text(GetHintText());
const ToolbarModel::SecurityLevel old_security_level = security_level_;
@@ -1037,8 +1037,7 @@ void OmniboxViewViews::UpdateContextMenu(ui::SimpleMenuModel* menu_contents) {
menu_contents->AddSeparator(ui::NORMAL_SEPARATOR);
- if (chrome::IsQueryExtractionEnabled() || chrome::ShouldDisplayOriginChip() ||
- chrome::ShouldDisplayOriginChipV2()) {
+ if (chrome::IsQueryExtractionEnabled() || chrome::ShouldDisplayOriginChip()) {
int select_all_position = menu_contents->GetIndexOfCommandId(
IDS_APP_SELECT_ALL);
DCHECK_GE(select_all_position, 0);

Powered by Google App Engine
This is Rietveld 408576698