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

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

Issue 245993002: Omnibox: Create Field Trial to Always Display Hint Text (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
« no previous file with comments | « chrome/browser/omnibox/omnibox_field_trial.cc ('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/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 63bab304e006a7b5ed6f0881bab8b5a2337c09dd..6fd327489c24ab8991f4b22d0f4f9b3bd78d05e5 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
@@ -14,6 +14,7 @@
#include "chrome/browser/autocomplete/autocomplete_match.h"
#include "chrome/browser/bookmarks/bookmark_node_data.h"
#include "chrome/browser/command_updater.h"
+#include "chrome/browser/omnibox/omnibox_field_trial.h"
#include "chrome/browser/search/search.h"
#include "chrome/browser/ui/omnibox/omnibox_edit_controller.h"
#include "chrome/browser/ui/omnibox/omnibox_edit_model.h"
@@ -226,7 +227,9 @@ void OmniboxViewViews::OnTabChanged(const content::WebContents* web_contents) {
}
void OmniboxViewViews::Update() {
- if (chrome::ShouldDisplayOriginChip() || chrome::ShouldDisplayOriginChipV2())
+ if (chrome::ShouldDisplayOriginChip() ||
+ chrome::ShouldDisplayOriginChipV2() ||
+ OmniboxFieldTrial::DisplayHintTextWhenPossible())
set_placeholder_text(GetHintText());
Peter Kasting 2014/04/22 23:40:21 See bug 363805: This will probably result in showi
Mark P 2014/04/22 23:42:55 I don't mind hint text in tab-to-search mode. But
const ToolbarModel::SecurityLevel old_security_level = security_level_;
« no previous file with comments | « chrome/browser/omnibox/omnibox_field_trial.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698