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

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

Issue 7654001: Remove an unnecessary argument. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 4 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/ui/views/omnibox/omnibox_view_views.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/omnibox/omnibox_view_views.cc
===================================================================
--- chrome/browser/ui/views/omnibox/omnibox_view_views.cc (revision 96793)
+++ chrome/browser/ui/views/omnibox/omnibox_view_views.cc (working copy)
@@ -146,7 +146,7 @@
bool popup_window_mode,
views::View* location_bar)
: model_(new AutocompleteEditModel(this, controller, profile)),
- popup_view_(CreatePopupView(profile, location_bar)),
+ popup_view_(CreatePopupView(location_bar)),
controller_(controller),
toolbar_model_(toolbar_model),
command_updater_(command_updater),
@@ -642,8 +642,8 @@
// And Go system uses.
string16 text = GetText();
url_parse::Component scheme, host;
- AutocompleteInput::ParseForEmphasizeComponents(
- text, model_->GetDesiredTLD(), &scheme, &host);
+ AutocompleteInput::ParseForEmphasizeComponents(text, model_->GetDesiredTLD(),
+ &scheme, &host);
const bool emphasize = model_->CurrentTextIsURL() && (host.len > 0);
SkColor base_color = emphasize ? kFadedTextColor : kNormalTextColor;
ApplyURLStyle(textfield_, 0, text.length(), base_color, false);
@@ -693,7 +693,6 @@
}
AutocompletePopupView* OmniboxViewViews::CreatePopupView(
- Profile* profile,
View* location_bar) {
#if defined(TOUCH_UI)
typedef TouchAutocompletePopupContentsView AutocompleteContentsView;
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_views.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698