| 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..bc97402aa20f0b9fd213247e9ee3714dcb158bd2 100644
|
| --- a/chrome/browser/ui/webui/options/import_data_handler.cc
|
| +++ b/chrome/browser/ui/webui/options/import_data_handler.cc
|
| @@ -19,6 +19,7 @@
|
| #include "chrome/browser/importer/importer_host.h"
|
| #include "chrome/browser/importer/importer_list.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| +#include "content/browser/tab_contents/tab_contents.h"
|
| #include "grit/chromium_strings.h"
|
| #include "grit/generated_resources.h"
|
| #include "ui/base/l10n/l10n_util.h"
|
| @@ -110,7 +111,8 @@ void ImportDataHandler::ImportData(const ListValue* args) {
|
| importer_host_ = new ImporterHost;
|
| #endif
|
| importer_host_->SetObserver(this);
|
| - Profile* profile = web_ui_->GetProfile();
|
| + Profile* profile =
|
| + Profile::FromBrowserContext(web_ui_->tab_contents()->browser_context());
|
| importer_host_->StartImportSettings(source_profile, profile,
|
| import_services,
|
| new ProfileWriter(profile), false);
|
|
|