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

Unified Diff: chrome/browser/autocomplete/autocomplete.cc

Issue 7574021: Remove frontend code that allows for dynamic profile setting, and read the profile off the browse... (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/autocomplete/autocomplete.h ('k') | chrome/browser/autocomplete/autocomplete_edit.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete.cc
===================================================================
--- chrome/browser/autocomplete/autocomplete.cc (revision 95527)
+++ chrome/browser/autocomplete/autocomplete.cc (working copy)
@@ -503,12 +503,6 @@
name_(name) {
}
-void AutocompleteProvider::SetProfile(Profile* profile) {
- DCHECK(profile);
- DCHECK(done_); // The controller should have already stopped us.
- profile_ = profile;
-}
-
void AutocompleteProvider::Stop() {
done_ = true;
}
@@ -835,15 +829,6 @@
providers_.clear(); // Not really necessary.
}
-void AutocompleteController::SetProfile(Profile* profile) {
- Stop(true);
- for (ACProviders::iterator i(providers_.begin()); i != providers_.end(); ++i)
- (*i)->SetProfile(profile);
- input_.Clear(); // Ensure we don't try to do a "minimal_changes" query on a
- // different profile.
- profile_ = profile;
-}
-
void AutocompleteController::Start(
const string16& text,
const string16& desired_tld,
« no previous file with comments | « chrome/browser/autocomplete/autocomplete.h ('k') | chrome/browser/autocomplete/autocomplete_edit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698