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

Side by Side Diff: chrome/browser/gtk/update_recommended_dialog.cc

Issue 3203008: Move prefs-related files under chrome/browser/ into a prefs/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 4 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/gtk/update_recommended_dialog.h" 5 #include "chrome/browser/gtk/update_recommended_dialog.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "chrome/browser/browser_list.h" 10 #include "chrome/browser/browser_list.h"
11 #include "chrome/browser/browser_process.h" 11 #include "chrome/browser/browser_process.h"
12 #include "chrome/browser/gtk/gtk_util.h" 12 #include "chrome/browser/gtk/gtk_util.h"
13 #include "chrome/browser/pref_service.h" 13 #include "chrome/browser/prefs/pref_service.h"
14 #include "chrome/common/pref_names.h" 14 #include "chrome/common/pref_names.h"
15 #include "grit/chromium_strings.h" 15 #include "grit/chromium_strings.h"
16 #include "grit/generated_resources.h" 16 #include "grit/generated_resources.h"
17 17
18 static const int kMessageWidth = 400; 18 static const int kMessageWidth = 400;
19 19
20 // static 20 // static
21 void UpdateRecommendedDialog::Show(GtkWindow* parent) { 21 void UpdateRecommendedDialog::Show(GtkWindow* parent) {
22 new UpdateRecommendedDialog(parent); 22 new UpdateRecommendedDialog(parent);
23 } 23 }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 if (response_id == GTK_RESPONSE_ACCEPT) { 59 if (response_id == GTK_RESPONSE_ACCEPT) {
60 // Set the flag to restore the last session on shutdown. 60 // Set the flag to restore the last session on shutdown.
61 PrefService* pref_service = g_browser_process->local_state(); 61 PrefService* pref_service = g_browser_process->local_state();
62 pref_service->SetBoolean(prefs::kRestartLastSessionOnShutdown, true); 62 pref_service->SetBoolean(prefs::kRestartLastSessionOnShutdown, true);
63 63
64 BrowserList::CloseAllBrowsersAndExit(); 64 BrowserList::CloseAllBrowsersAndExit();
65 } 65 }
66 66
67 delete this; 67 delete this;
68 } 68 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698