diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-05 23:16:29 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-05 23:16:29 +0000 |
commit | 4973efc5711e1ab70c68221eb47c7ef7151a623a (patch) | |
tree | 8fad642b4570d7d0f18b9fd11656e4d5e3a4fbbc /chrome/browser/autocomplete | |
parent | facd7a7651cf81da7fbe48596be7f4324ff86ab8 (diff) | |
download | chromium_src-4973efc5711e1ab70c68221eb47c7ef7151a623a.zip chromium_src-4973efc5711e1ab70c68221eb47c7ef7151a623a.tar.gz chromium_src-4973efc5711e1ab70c68221eb47c7ef7151a623a.tar.bz2 |
Completely miscellaneous minor cleanup. Remove some unneeded class declarations, modify or add a couple comments, change a function name in hopes of greater accuracy.
Review URL: http://codereview.chromium.org/119264
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17798 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete')
-rw-r--r-- | chrome/browser/autocomplete/autocomplete_edit.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit.cc b/chrome/browser/autocomplete/autocomplete_edit.cc index 70622d3..b842884 100644 --- a/chrome/browser/autocomplete/autocomplete_edit.cc +++ b/chrome/browser/autocomplete/autocomplete_edit.cc @@ -198,11 +198,10 @@ bool AutocompleteEditModel::CanPasteAndGo(const std::wstring& text) const { paste_and_go_alternate_nav_url_ = GURL(); // Ask the controller what do do with this input. + // Setting the profile is cheap, and since there's one paste_and_go_controller + // for many tabs which may all have different profiles, it ensures we're + // always using the right one. paste_and_go_controller->SetProfile(profile_); - // This is cheap, and since there's one - // paste_and_go_controller for many tabs which - // may all have different profiles, it ensures - // we're always using the right one. paste_and_go_controller->Start(text, std::wstring(), true, false, true); DCHECK(paste_and_go_controller->done()); const AutocompleteResult& result = paste_and_go_controller->result(); |