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

Unified Diff: chrome/browser/views/first_run_view.cc

Issue 155168: Fix for the default browser info-bar showing after first run (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « chrome/browser/views/first_run_view.h ('k') | chrome/common/temp_scaffolding_stubs.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/first_run_view.cc
===================================================================
--- chrome/browser/views/first_run_view.cc (revision 20029)
+++ chrome/browser/views/first_run_view.cc (working copy)
@@ -39,14 +39,13 @@
actions_import_(NULL),
actions_shorcuts_(NULL),
customize_link_(NULL),
- customize_selected_(false) {
+ customize_selected_(false),
+ accepted_(false) {
importer_host_ = new ImporterHost();
SetupControls();
}
FirstRunView::~FirstRunView() {
- // Exit the message loop we were started with so that startup can continue.
- MessageLoop::current()->Quit();
}
void FirstRunView::SetupControls() {
@@ -184,12 +183,15 @@
if (default_browser_->checked())
SetDefaultBrowser();
+ accepted_ = true;
FirstRunComplete();
+ MessageLoop::current()->PostTask(FROM_HERE, new MessageLoop::QuitTask());
return true;
}
bool FirstRunView::Cancel() {
UserMetrics::RecordAction(L"FirstRunDef_Cancel", profile_);
+ MessageLoop::current()->PostTask(FROM_HERE, new MessageLoop::QuitTask());
return true;
}
« no previous file with comments | « chrome/browser/views/first_run_view.h ('k') | chrome/common/temp_scaffolding_stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698