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

Unified Diff: chrome/browser/ui/omnibox/omnibox_edit_model.cc

Issue 105613002: Remove unused parameter to ToolbarModel::GetText. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to comments. Created 7 years 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/android/tab_model/tab_model.cc ('k') | chrome/browser/ui/toolbar/test_toolbar_model.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/omnibox/omnibox_edit_model.cc
diff --git a/chrome/browser/ui/omnibox/omnibox_edit_model.cc b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
index eed29522d7370a3d6ecf10fdc4a369b2a70c4c87..ef5f55774258bc41eb3f8c5a321b2e00e849a1cd 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) &&
« no previous file with comments | « chrome/browser/ui/android/tab_model/tab_model.cc ('k') | chrome/browser/ui/toolbar/test_toolbar_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698