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

Side by Side Diff: chrome/browser/gtk/options/content_settings_window_gtk.cc

Issue 5606002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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) 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/content_settings_window_gtk.h" 5 #include "chrome/browser/gtk/options/content_settings_window_gtk.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "chrome/browser/browser_process.h" 12 #include "chrome/browser/browser_process.h"
13 #include "chrome/browser/gtk/accessible_widget_helper_gtk.h" 13 #include "chrome/browser/gtk/accessible_widget_helper_gtk.h"
14 #include "chrome/browser/gtk/browser_window_gtk.h" 14 #include "chrome/browser/gtk/browser_window_gtk.h"
15 #include "chrome/browser/gtk/gtk_util.h" 15 #include "chrome/browser/gtk/gtk_util.h"
16 #include "chrome/browser/gtk/gtk_tree.h" 16 #include "chrome/browser/gtk/gtk_tree.h"
17 #include "chrome/browser/prefs/pref_service.h" 17 #include "chrome/browser/prefs/pref_service.h"
18 #include "chrome/browser/profile.h" 18 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/browser/ui/browser.h" 19 #include "chrome/browser/ui/browser.h"
20 #include "chrome/browser/ui/browser_list.h" 20 #include "chrome/browser/ui/browser_list.h"
21 #include "chrome/common/chrome_switches.h" 21 #include "chrome/common/chrome_switches.h"
22 #include "chrome/common/content_settings_types.h" 22 #include "chrome/common/content_settings_types.h"
23 #include "chrome/common/notification_service.h" 23 #include "chrome/common/notification_service.h"
24 #include "chrome/common/pref_names.h" 24 #include "chrome/common/pref_names.h"
25 #include "grit/chromium_strings.h" 25 #include "grit/chromium_strings.h"
26 #include "grit/generated_resources.h" 26 #include "grit/generated_resources.h"
27 #include "grit/locale_settings.h" 27 #include "grit/locale_settings.h"
28 28
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 } 234 }
235 gint row_index = gtk_tree::GetRowNumForIter(model, &iter); 235 gint row_index = gtk_tree::GetRowNumForIter(model, &iter);
236 DCHECK(row_index > CONTENT_SETTINGS_TYPE_DEFAULT && 236 DCHECK(row_index > CONTENT_SETTINGS_TYPE_DEFAULT &&
237 row_index < CONTENT_SETTINGS_NUM_TYPES); 237 row_index < CONTENT_SETTINGS_NUM_TYPES);
238 238
239 last_selected_page_.SetValue(row_index); 239 last_selected_page_.SetValue(row_index);
240 240
241 if (row_index != gtk_notebook_get_current_page(GTK_NOTEBOOK(notebook_))) 241 if (row_index != gtk_notebook_get_current_page(GTK_NOTEBOOK(notebook_)))
242 gtk_notebook_set_current_page(GTK_NOTEBOOK(notebook_), row_index); 242 gtk_notebook_set_current_page(GTK_NOTEBOOK(notebook_), row_index);
243 } 243 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/options/content_page_gtk.h ('k') | chrome/browser/gtk/options/cookie_filter_page_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698