OLD | NEW |
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/options/passwords_exceptions_window_gtk.h" | 5 #include "chrome/browser/gtk/options/passwords_exceptions_window_gtk.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "app/l10n_util.h" | 11 #include "app/l10n_util.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
14 #include "chrome/browser/gtk/accessible_widget_helper_gtk.h" | 14 #include "chrome/browser/gtk/accessible_widget_helper_gtk.h" |
15 #include "chrome/browser/gtk/gtk_util.h" | 15 #include "chrome/browser/gtk/gtk_util.h" |
16 #include "chrome/browser/gtk/options/passwords_exceptions_page_gtk.h" | 16 #include "chrome/browser/gtk/options/passwords_exceptions_page_gtk.h" |
17 #include "chrome/browser/gtk/options/passwords_page_gtk.h" | 17 #include "chrome/browser/gtk/options/passwords_page_gtk.h" |
18 #include "chrome/browser/options_window.h" | |
19 #include "chrome/browser/profile.h" | 18 #include "chrome/browser/profile.h" |
| 19 #include "chrome/browser/ui/options/options_window.h" |
20 #include "grit/chromium_strings.h" | 20 #include "grit/chromium_strings.h" |
21 #include "grit/generated_resources.h" | 21 #include "grit/generated_resources.h" |
22 #include "grit/locale_settings.h" | 22 #include "grit/locale_settings.h" |
23 | 23 |
24 /////////////////////////////////////////////////////////////////////////////// | 24 /////////////////////////////////////////////////////////////////////////////// |
25 // PasswordsExceptionsWindowGtk | 25 // PasswordsExceptionsWindowGtk |
26 // | 26 // |
27 // The contents of the Passwords and Exceptions dialog window. | 27 // The contents of the Passwords and Exceptions dialog window. |
28 | 28 |
29 class PasswordsExceptionsWindowGtk { | 29 class PasswordsExceptionsWindowGtk { |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 // Factory/finder method: | 137 // Factory/finder method: |
138 | 138 |
139 void ShowPasswordsExceptionsWindow(Profile* profile) { | 139 void ShowPasswordsExceptionsWindow(Profile* profile) { |
140 DCHECK(profile); | 140 DCHECK(profile); |
141 // If there's already an existing passwords and exceptions window, use it. | 141 // If there's already an existing passwords and exceptions window, use it. |
142 if (!passwords_exceptions_window) { | 142 if (!passwords_exceptions_window) { |
143 passwords_exceptions_window = new PasswordsExceptionsWindowGtk(profile); | 143 passwords_exceptions_window = new PasswordsExceptionsWindowGtk(profile); |
144 } | 144 } |
145 passwords_exceptions_window->Show(); | 145 passwords_exceptions_window->Show(); |
146 } | 146 } |
OLD | NEW |