| OLD | NEW | 
|---|
| 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 "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" | 
| 8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" | 
| 9 #include "chrome/browser/first_run/first_run.h" | 9 #include "chrome/browser/first_run/first_run.h" | 
| 10 #include "chrome/browser/platform_util.h" | 10 #include "chrome/browser/platform_util.h" | 
| (...skipping 12 matching lines...) Expand all  Loading... | 
| 23 #include "ui/aura/window_event_dispatcher.h" | 23 #include "ui/aura/window_event_dispatcher.h" | 
| 24 #include "ui/base/l10n/l10n_util.h" | 24 #include "ui/base/l10n/l10n_util.h" | 
| 25 #include "ui/views/controls/button/checkbox.h" | 25 #include "ui/views/controls/button/checkbox.h" | 
| 26 #include "ui/views/controls/link.h" | 26 #include "ui/views/controls/link.h" | 
| 27 #include "ui/views/layout/grid_layout.h" | 27 #include "ui/views/layout/grid_layout.h" | 
| 28 #include "ui/views/layout/layout_constants.h" | 28 #include "ui/views/layout/layout_constants.h" | 
| 29 #include "ui/views/widget/widget.h" | 29 #include "ui/views/widget/widget.h" | 
| 30 #include "ui/views/window/dialog_delegate.h" | 30 #include "ui/views/window/dialog_delegate.h" | 
| 31 | 31 | 
| 32 #if defined(GOOGLE_CHROME_BUILD) | 32 #if defined(GOOGLE_CHROME_BUILD) | 
| 33 #include "base/prefs/pref_service.h" |  | 
| 34 #include "chrome/browser/browser_process.h" | 33 #include "chrome/browser/browser_process.h" | 
|  | 34 #include "components/prefs/pref_service.h" | 
| 35 #endif | 35 #endif | 
| 36 | 36 | 
| 37 using views::GridLayout; | 37 using views::GridLayout; | 
| 38 | 38 | 
| 39 namespace first_run { | 39 namespace first_run { | 
| 40 | 40 | 
| 41 bool ShowFirstRunDialog(Profile* profile) { | 41 bool ShowFirstRunDialog(Profile* profile) { | 
| 42   return FirstRunDialog::Show(profile); | 42   return FirstRunDialog::Show(profile); | 
| 43 } | 43 } | 
| 44 | 44 | 
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 133   return true; | 133   return true; | 
| 134 } | 134 } | 
| 135 | 135 | 
| 136 int FirstRunDialog::GetDialogButtons() const { | 136 int FirstRunDialog::GetDialogButtons() const { | 
| 137   return ui::DIALOG_BUTTON_OK; | 137   return ui::DIALOG_BUTTON_OK; | 
| 138 } | 138 } | 
| 139 | 139 | 
| 140 void FirstRunDialog::LinkClicked(views::Link* source, int event_flags) { | 140 void FirstRunDialog::LinkClicked(views::Link* source, int event_flags) { | 
| 141   platform_util::OpenExternal(profile_, GURL(chrome::kLearnMoreReportingURL)); | 141   platform_util::OpenExternal(profile_, GURL(chrome::kLearnMoreReportingURL)); | 
| 142 } | 142 } | 
| OLD | NEW | 
|---|