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

Unified Diff: chrome/browser/first_run.cc

Issue 100170: Fix a DCHECK hit from RefCountedBase class. (Closed)
Patch Set: Created 11 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/first_run.cc
diff --git a/chrome/browser/first_run.cc b/chrome/browser/first_run.cc
index 6291585f7c3d4307488e5edd4815af0023bc9dd3..e11b842dfa41ee9b2513e2cfc899eeb468ebd737 100644
--- a/chrome/browser/first_run.cc
+++ b/chrome/browser/first_run.cc
@@ -291,9 +291,9 @@ bool FirstRun::ProcessMasterPreferences(
if (import_items) {
// There is something to import from the default browser. This launches
// the importer process and blocks until done or until it fails.
- ImporterHost importer_host;
+ scoped_refptr<ImporterHost> importer_host = new ImporterHost();
if (!FirstRun::ImportSettings(NULL,
- importer_host.GetSourceProfileInfoAt(0).browser_type,
+ importer_host->GetSourceProfileInfoAt(0).browser_type,
import_items, NULL)) {
LOG(WARNING) << "silent import failed";
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698