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

Unified Diff: chrome/browser/ui/webui/options2/import_data_handler2.cc

Issue 10750018: Remove browser::FindLastActiveWithProfile call in importer code. There are many ways to create an I… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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/options2/import_data_handler2.cc
===================================================================
--- chrome/browser/ui/webui/options2/import_data_handler2.cc (revision 145643)
+++ chrome/browser/ui/webui/options2/import_data_handler2.cc (working copy)
@@ -20,6 +20,7 @@
#include "chrome/browser/importer/importer_host.h"
#include "chrome/browser/importer/importer_list.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/ui/browser_finder.h"
#include "content/public/browser/web_ui.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
@@ -117,6 +118,8 @@
importer_host_ = new ImporterHost;
#endif
importer_host_->SetObserver(this);
+ importer_host_->set_browser(
+ browser::FindBrowserWithWebContents(web_ui()->GetWebContents()));
Profile* profile = Profile::FromWebUI(web_ui());
importer_host_->StartImportSettings(source_profile, profile,
import_services,
« chrome/browser/importer/importer_host.cc ('K') | « chrome/browser/importer/importer_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698