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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 "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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view_md.cc ('k') | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698