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/gtk/first_run_dialog.h" | 5 #include "chrome/browser/gtk/first_run_dialog.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "chrome/browser/gtk/gtk_chrome_link_button.h" | 10 #include "chrome/browser/gtk/gtk_chrome_link_button.h" |
11 #include "chrome/browser/process_singleton.h" | 11 #include "chrome/browser/process_singleton.h" |
12 #include "chrome/browser/shell_integration.h" | 12 #include "chrome/browser/shell_integration.h" |
13 #include "chrome/common/gtk_util.h" | 13 #include "chrome/common/gtk_util.h" |
14 #include "chrome/common/platform_util.h" | 14 #include "chrome/common/platform_util.h" |
15 #include "chrome/installer/util/google_update_settings.h" | 15 #include "chrome/installer/util/google_update_settings.h" |
| 16 #include "grit/chromium_strings.h" |
16 #include "grit/generated_resources.h" | 17 #include "grit/generated_resources.h" |
17 #include "grit/google_chrome_strings.h" | |
18 #include "grit/locale_settings.h" | 18 #include "grit/locale_settings.h" |
19 | 19 |
20 #if defined(USE_LINUX_BREAKPAD) | 20 #if defined(USE_LINUX_BREAKPAD) |
21 #include "chrome/app/breakpad_linux.h" | 21 #include "chrome/app/breakpad_linux.h" |
22 #endif | 22 #endif |
23 | 23 |
24 // static | 24 // static |
25 bool FirstRunDialog::Show(Profile* profile, | 25 bool FirstRunDialog::Show(Profile* profile, |
26 ProcessSingleton* process_singleton) { | 26 ProcessSingleton* process_singleton) { |
27 int response = -1; | 27 int response = -1; |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 | 186 |
187 void FirstRunDialog::FirstRunDone() { | 187 void FirstRunDialog::FirstRunDone() { |
188 // Set preference to show first run bubble and welcome page. | 188 // Set preference to show first run bubble and welcome page. |
189 FirstRun::SetShowFirstRunBubblePref(); | 189 FirstRun::SetShowFirstRunBubblePref(); |
190 FirstRun::SetShowWelcomePagePref(); | 190 FirstRun::SetShowWelcomePagePref(); |
191 | 191 |
192 gtk_widget_destroy(dialog_); | 192 gtk_widget_destroy(dialog_); |
193 MessageLoop::current()->Quit(); | 193 MessageLoop::current()->Quit(); |
194 delete this; | 194 delete this; |
195 } | 195 } |
OLD | NEW |