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

Side by Side Diff: chrome/browser/ui/views/first_run_dialog.cc

Issue 2272173002: Fix most chrome/browser/ui "gn check" problems. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/views/first_run_dialog.h" 5 #include "chrome/browser/ui/views/first_run_dialog.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/run_loop.h" 11 #include "base/run_loop.h"
12 #include "chrome/browser/first_run/first_run.h" 12 #include "chrome/browser/first_run/first_run.h"
13 #include "chrome/browser/metrics/metrics_reporting_state.h" 13 #include "chrome/browser/metrics/metrics_reporting_state.h"
14 #include "chrome/browser/platform_util.h" 14 #include "chrome/browser/platform_util.h"
15 #include "chrome/browser/shell_integration.h" 15 #include "chrome/browser/shell_integration.h"
16 #include "chrome/common/url_constants.h" 16 #include "chrome/common/url_constants.h"
17 #include "chrome/grit/chromium_strings.h" 17 #include "chrome/grit/chromium_strings.h"
18 #include "chrome/grit/generated_resources.h" 18 #include "chrome/grit/generated_resources.h"
19 #include "chrome/grit/locale_settings.h" 19 #include "chrome/grit/locale_settings.h"
20 #include "components/crash/content/app/breakpad_linux.h"
21 #include "grit/components_strings.h" 20 #include "grit/components_strings.h"
22 #include "ui/aura/env.h" 21 #include "ui/aura/env.h"
23 #include "ui/aura/window.h" 22 #include "ui/aura/window.h"
24 #include "ui/aura/window_event_dispatcher.h" 23 #include "ui/aura/window_event_dispatcher.h"
25 #include "ui/base/l10n/l10n_util.h" 24 #include "ui/base/l10n/l10n_util.h"
26 #include "ui/views/controls/button/checkbox.h" 25 #include "ui/views/controls/button/checkbox.h"
27 #include "ui/views/controls/link.h" 26 #include "ui/views/controls/link.h"
28 #include "ui/views/layout/grid_layout.h" 27 #include "ui/views/layout/grid_layout.h"
29 #include "ui/views/layout/layout_constants.h" 28 #include "ui/views/layout/layout_constants.h"
30 #include "ui/views/widget/widget.h" 29 #include "ui/views/widget/widget.h"
31 #include "ui/views/window/dialog_delegate.h" 30 #include "ui/views/window/dialog_delegate.h"
32 31
32 #if defined(OS_WIN)
33 #include "components/crash/content/app/breakpad_win.h"
34 #elif defined(OS_LINUX)
35 #include "components/crash/content/app/breakpad_linux.h"
36 #endif
37
33 using views::GridLayout; 38 using views::GridLayout;
34 39
35 namespace { 40 namespace {
36 41
37 void InitCrashReporterIfEnabled(bool enabled) { 42 void InitCrashReporterIfEnabled(bool enabled) {
38 if (enabled) 43 if (enabled)
39 breakpad::InitCrashReporter(std::string()); 44 breakpad::InitCrashReporter(std::string());
40 } 45 }
41 46
42 } // namespace 47 } // namespace
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 } 136 }
132 137
133 void FirstRunDialog::WindowClosing() { 138 void FirstRunDialog::WindowClosing() {
134 first_run::SetShouldShowWelcomePage(); 139 first_run::SetShouldShowWelcomePage();
135 Done(); 140 Done();
136 } 141 }
137 142
138 void FirstRunDialog::LinkClicked(views::Link* source, int event_flags) { 143 void FirstRunDialog::LinkClicked(views::Link* source, int event_flags) {
139 platform_util::OpenExternal(profile_, GURL(chrome::kLearnMoreReportingURL)); 144 platform_util::OpenExternal(profile_, GURL(chrome::kLearnMoreReportingURL));
140 } 145 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698