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

Unified Diff: chrome/browser/first_run_gtk.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/first_run.cc ('k') | chrome/browser/first_run_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/first_run_gtk.cc
===================================================================
--- chrome/browser/first_run_gtk.cc (revision 20029)
+++ chrome/browser/first_run_gtk.cc (working copy)
@@ -27,7 +27,7 @@
} // namespace
-void OpenFirstRunDialog(Profile* profile, ProcessSingleton* process_singleton) {
+bool OpenFirstRunDialog(Profile* profile, ProcessSingleton* process_singleton) {
#if defined(GOOGLE_CHROME_BUILD)
GtkWidget* dialog = gtk_dialog_new_with_buttons(
"Google Chrome Dev Build",
@@ -111,7 +111,8 @@
MessageLoop::current()->Run();
// End of above TODO.
- if (response == GTK_RESPONSE_ACCEPT) {
+ bool accepted = (response == GTK_RESPONSE_ACCEPT);
+ if (accepted) {
// Mark that first run has ran.
FirstRun::CreateSentinel();
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(check))) {
@@ -125,7 +126,9 @@
}
gtk_widget_destroy(dialog);
+ return accepted;
#else // defined(GOOGLE_CHROME_BUILD)
FirstRun::CreateSentinel();
+ return true;
#endif
}
Property changes on: chrome\browser\first_run_gtk.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/first_run.cc ('k') | chrome/browser/first_run_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698