OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/gtk/first_run_dialog.h" | 5 #include "chrome/browser/ui/gtk/first_run_dialog.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
11 #include "app/resource_bundle.h" | |
12 #include "base/i18n/rtl.h" | 11 #include "base/i18n/rtl.h" |
13 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
14 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
15 #include "chrome/browser/google/google_util.h" | 14 #include "chrome/browser/google/google_util.h" |
16 #include "chrome/browser/platform_util.h" | 15 #include "chrome/browser/platform_util.h" |
17 #include "chrome/browser/process_singleton.h" | 16 #include "chrome/browser/process_singleton.h" |
18 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
19 #include "chrome/browser/search_engines/template_url.h" | 18 #include "chrome/browser/search_engines/template_url.h" |
20 #include "chrome/browser/search_engines/template_url_model.h" | 19 #include "chrome/browser/search_engines/template_url_model.h" |
21 #include "chrome/browser/shell_integration.h" | 20 #include "chrome/browser/shell_integration.h" |
22 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" | 21 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" |
23 #include "chrome/browser/ui/gtk/gtk_floating_container.h" | 22 #include "chrome/browser/ui/gtk/gtk_floating_container.h" |
24 #include "chrome/browser/ui/gtk/gtk_util.h" | 23 #include "chrome/browser/ui/gtk/gtk_util.h" |
25 #include "chrome/common/pref_names.h" | 24 #include "chrome/common/pref_names.h" |
26 #include "chrome/common/url_constants.h" | 25 #include "chrome/common/url_constants.h" |
27 #include "chrome/installer/util/google_update_settings.h" | 26 #include "chrome/installer/util/google_update_settings.h" |
28 #include "grit/chromium_strings.h" | 27 #include "grit/chromium_strings.h" |
29 #include "grit/generated_resources.h" | 28 #include "grit/generated_resources.h" |
30 #include "grit/locale_settings.h" | 29 #include "grit/locale_settings.h" |
31 #include "grit/theme_resources.h" | 30 #include "grit/theme_resources.h" |
| 31 #include "ui/base/resource/resource_bundle.h" |
32 | 32 |
33 #if defined(USE_LINUX_BREAKPAD) | 33 #if defined(USE_LINUX_BREAKPAD) |
34 #include "chrome/app/breakpad_linux.h" | 34 #include "chrome/app/breakpad_linux.h" |
35 #endif | 35 #endif |
36 | 36 |
37 #if defined(GOOGLE_CHROME_BUILD) | 37 #if defined(GOOGLE_CHROME_BUILD) |
38 #include "chrome/browser/browser_process.h" | 38 #include "chrome/browser/browser_process.h" |
39 #include "chrome/browser/prefs/pref_service.h" | 39 #include "chrome/browser/prefs/pref_service.h" |
40 #endif | 40 #endif |
41 | 41 |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 } | 417 } |
418 | 418 |
419 void FirstRunDialog::FirstRunDone() { | 419 void FirstRunDialog::FirstRunDone() { |
420 FirstRun::SetShowWelcomePagePref(); | 420 FirstRun::SetShowWelcomePagePref(); |
421 | 421 |
422 if (dialog_) | 422 if (dialog_) |
423 gtk_widget_destroy(dialog_); | 423 gtk_widget_destroy(dialog_); |
424 MessageLoop::current()->Quit(); | 424 MessageLoop::current()->Quit(); |
425 delete this; | 425 delete this; |
426 } | 426 } |
OLD | NEW |