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

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

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
(...skipping 15 matching lines...) Expand all
26 #include "ui/base/gtk/gtk_floating_container.h" 26 #include "ui/base/gtk/gtk_floating_container.h"
27 #include "ui/base/gtk/gtk_hig_constants.h" 27 #include "ui/base/gtk/gtk_hig_constants.h"
28 #include "ui/base/l10n/l10n_util.h" 28 #include "ui/base/l10n/l10n_util.h"
29 #include "ui/base/resource/resource_bundle.h" 29 #include "ui/base/resource/resource_bundle.h"
30 30
31 #if defined(USE_LINUX_BREAKPAD) 31 #if defined(USE_LINUX_BREAKPAD)
32 #include "chrome/app/breakpad_linux.h" 32 #include "chrome/app/breakpad_linux.h"
33 #endif 33 #endif
34 34
35 #if defined(GOOGLE_CHROME_BUILD) 35 #if defined(GOOGLE_CHROME_BUILD)
36 #include "base/prefs/pref_service.h"
36 #include "chrome/browser/browser_process.h" 37 #include "chrome/browser/browser_process.h"
37 #include "chrome/browser/prefs/pref_service.h"
38 #endif 38 #endif
39 39
40 namespace { 40 namespace {
41 41
42 // Set the (x, y) coordinates of the welcome message (which floats on top of 42 // Set the (x, y) coordinates of the welcome message (which floats on top of
43 // the omnibox image at the top of the first run dialog). 43 // the omnibox image at the top of the first run dialog).
44 void SetWelcomePosition(GtkFloatingContainer* container, 44 void SetWelcomePosition(GtkFloatingContainer* container,
45 GtkAllocation* allocation, 45 GtkAllocation* allocation,
46 GtkWidget* label) { 46 GtkWidget* label) {
47 GValue value = { 0, }; 47 GValue value = { 0, };
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 } 207 }
208 208
209 void FirstRunDialog::FirstRunDone() { 209 void FirstRunDialog::FirstRunDone() {
210 first_run::SetShowWelcomePagePref(); 210 first_run::SetShowWelcomePagePref();
211 211
212 if (dialog_) 212 if (dialog_)
213 gtk_widget_destroy(dialog_); 213 gtk_widget_destroy(dialog_);
214 MessageLoop::current()->Quit(); 214 MessageLoop::current()->Quit();
215 delete this; 215 delete this;
216 } 216 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/collected_cookies_gtk.cc ('k') | chrome/browser/ui/gtk/global_menu_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698