Commit dc15535e authored by pkasting@chromium.org's avatar pkasting@chromium.org

Remove an unnecessary argument.

BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7654001

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96872 0039d316-1c4b-4281-b951-d872f2087c98
parent cc426c18
......@@ -146,7 +146,7 @@ OmniboxViewViews::OmniboxViewViews(AutocompleteEditController* controller,
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 @@ void OmniboxViewViews::EmphasizeURLComponents() {
// 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 @@ void OmniboxViewViews::SelectRange(size_t caret, size_t end) {
}
AutocompletePopupView* OmniboxViewViews::CreatePopupView(
Profile* profile,
View* location_bar) {
#if defined(TOUCH_UI)
typedef TouchAutocompletePopupContentsView AutocompleteContentsView;
......
......@@ -156,8 +156,7 @@ class OmniboxViewViews : public views::View,
// Selects the text given by |caret| and |end|.
void SelectRange(size_t caret, size_t end);
AutocompletePopupView* CreatePopupView(Profile* profile,
View* location_bar);
AutocompletePopupView* CreatePopupView(View* location_bar);
views::Textfield* textfield_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment