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); |