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

Unified Diff: chrome/browser/autocomplete/autocomplete_edit.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
Index: chrome/browser/autocomplete/autocomplete_edit.cc
===================================================================
--- chrome/browser/autocomplete/autocomplete_edit.cc (revision 95527)
+++ chrome/browser/autocomplete/autocomplete_edit.cc (working copy)
@@ -89,13 +89,6 @@
AutocompleteEditModel::~AutocompleteEditModel() {
}
-void AutocompleteEditModel::SetProfile(Profile* profile) {
- DCHECK(profile);
- profile_ = profile;
- autocomplete_controller_->SetProfile(profile);
- popup_->set_profile(profile);
-}
-
const AutocompleteEditModel::State
AutocompleteEditModel::GetStateForTabSwitch() {
// Like typing, switching tabs "accepts" the temporary text as the user
@@ -236,7 +229,7 @@
// Start Prerender of this page instead.
CHECK(tab->tab_contents());
prerender::PrerenderManager* prerender_manager =
- tab->profile()->GetPrerenderManager();
+ profile_->GetPrerenderManager();
if (prerender_manager) {
prerender_manager->AddPrerenderFromOmnibox(
CurrentMatch().destination_url);
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit.h ('k') | chrome/browser/autocomplete/autocomplete_popup_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698