| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/first_run.h" | 5 #include "chrome/browser/first_run.h" |
| 6 | 6 |
| 7 #include "chrome/app/breakpad_linux.h" | 7 #include "chrome/app/breakpad_linux.h" |
| 8 // We need to reach through the browser process to tweak the metrics flag. | 8 // We need to reach through the browser process to tweak the metrics flag. |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/common/pref_names.h" | 10 #include "chrome/common/pref_names.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 int* response_out = static_cast<int*>(data); | 23 int* response_out = static_cast<int*>(data); |
| 24 *response_out = response; | 24 *response_out = response; |
| 25 MessageLoop::current()->Quit(); | 25 MessageLoop::current()->Quit(); |
| 26 } | 26 } |
| 27 | 27 |
| 28 } // namespace | 28 } // namespace |
| 29 | 29 |
| 30 void OpenFirstRunDialog(Profile* profile, ProcessSingleton* process_singleton) { | 30 void OpenFirstRunDialog(Profile* profile, ProcessSingleton* process_singleton) { |
| 31 #if defined(GOOGLE_CHROME_BUILD) | 31 #if defined(GOOGLE_CHROME_BUILD) |
| 32 GtkWidget* dialog = gtk_dialog_new_with_buttons( | 32 GtkWidget* dialog = gtk_dialog_new_with_buttons( |
| 33 "Google Chrome Alpha", | 33 "Google Chrome Dev Build", |
| 34 NULL, // No parent | 34 NULL, // No parent |
| 35 (GtkDialogFlags) (GTK_DIALOG_MODAL | GTK_DIALOG_NO_SEPARATOR), | 35 (GtkDialogFlags) (GTK_DIALOG_MODAL | GTK_DIALOG_NO_SEPARATOR), |
| 36 GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, | 36 GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, |
| 37 NULL); | 37 NULL); |
| 38 gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE); | 38 gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE); |
| 39 g_signal_connect(G_OBJECT(dialog), "delete-event", | 39 g_signal_connect(G_OBJECT(dialog), "delete-event", |
| 40 G_CALLBACK(gtk_widget_hide_on_delete), NULL); | 40 G_CALLBACK(gtk_widget_hide_on_delete), NULL); |
| 41 | 41 |
| 42 GtkWidget* content_area = GTK_DIALOG(dialog)->vbox; | 42 GtkWidget* content_area = GTK_DIALOG(dialog)->vbox; |
| 43 gtk_box_set_spacing(GTK_BOX(content_area), 18); | 43 gtk_box_set_spacing(GTK_BOX(content_area), 18); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 GoogleUpdateSettings::SetCollectStatsConsent(false); | 106 GoogleUpdateSettings::SetCollectStatsConsent(false); |
| 107 } | 107 } |
| 108 } | 108 } |
| 109 | 109 |
| 110 gtk_widget_destroy(dialog); | 110 gtk_widget_destroy(dialog); |
| 111 #endif // defined(GOOGLE_CHROME_BUILD) | 111 #endif // defined(GOOGLE_CHROME_BUILD) |
| 112 | 112 |
| 113 // Mark that first run has ran. | 113 // Mark that first run has ran. |
| 114 FirstRun::CreateSentinel(); | 114 FirstRun::CreateSentinel(); |
| 115 } | 115 } |
| OLD | NEW |