summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/omnibox/omnibox_edit_model.cc
diff options
context:
space:
mode:
authorjdonnelly@chromium.org <jdonnelly@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-05 20:43:46 +0000
committerjdonnelly@chromium.org <jdonnelly@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-05 20:43:46 +0000
commit5752b60e564ae0c4d083e4ad936037d832e17612 (patch)
tree7c1855b22c1112be57541fea2bc5bd406ca1657f /chrome/browser/ui/omnibox/omnibox_edit_model.cc
parent8780409eb4a52a1bd5430654f60f1380c7fddccb (diff)
downloadchromium_src-5752b60e564ae0c4d083e4ad936037d832e17612.zip
chromium_src-5752b60e564ae0c4d083e4ad936037d832e17612.tar.gz
chromium_src-5752b60e564ae0c4d083e4ad936037d832e17612.tar.bz2
Remove unused parameter to ToolbarModel::GetText.
BUG= Review URL: https://codereview.chromium.org/105613002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239031 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/omnibox/omnibox_edit_model.cc')
-rw-r--r--chrome/browser/ui/omnibox/omnibox_edit_model.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/ui/omnibox/omnibox_edit_model.cc b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
index 550e718..b1cc1cb 100644
--- a/chrome/browser/ui/omnibox/omnibox_edit_model.cc
+++ b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
@@ -223,7 +223,7 @@ void OmniboxEditModel::RestoreState(const State* state) {
// regardless of whether there is saved state.
controller_->GetToolbarModel()->set_search_term_replacement_enabled(
!state || state->search_term_replacement_enabled);
- permanent_text_ = controller_->GetToolbarModel()->GetText(true);
+ permanent_text_ = controller_->GetToolbarModel()->GetText();
// Don't muck with the search term replacement state, as we've just set it
// correctly.
view_->RevertWithoutResettingSearchTermReplacement();
@@ -283,7 +283,7 @@ bool OmniboxEditModel::UpdatePermanentText() {
// process -- before and after the auto-commit, the omnibox should show the
// same user text and the same instant suggestion, even if the auto-commit
// happens while the edit doesn't have focus.
- string16 new_permanent_text = controller_->GetToolbarModel()->GetText(true);
+ string16 new_permanent_text = controller_->GetToolbarModel()->GetText();
string16 gray_text = view_->GetGrayTextAutocompletion();
const bool visibly_changed_permanent_text =
(permanent_text_ != new_permanent_text) &&