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

Unified Diff: chrome/browser/ui/webui/options/import_data_handler.cc

Issue 7554008: Removal of Profile from content part 6. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Profile helper function, rebase 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/ui/webui/options/import_data_handler.cc
diff --git a/chrome/browser/ui/webui/options/import_data_handler.cc b/chrome/browser/ui/webui/options/import_data_handler.cc
index f073fc2722f767da3a6dde069dc192957c9fe774..7138c79515902fd1adc914e20cdaae0e84f4b655 100644
--- a/chrome/browser/ui/webui/options/import_data_handler.cc
+++ b/chrome/browser/ui/webui/options/import_data_handler.cc
@@ -110,7 +110,7 @@ void ImportDataHandler::ImportData(const ListValue* args) {
importer_host_ = new ImporterHost;
#endif
importer_host_->SetObserver(this);
- Profile* profile = web_ui_->GetProfile();
+ Profile* profile = Profile::FromWebUI(web_ui_);
importer_host_->StartImportSettings(source_profile, profile,
import_services,
new ProfileWriter(profile), false);

Powered by Google App Engine
This is Rietveld 408576698