| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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" |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 } | 231 } |
| 232 gint row_index = gtk_tree::GetRowNumForIter(model, &iter); | 232 gint row_index = gtk_tree::GetRowNumForIter(model, &iter); |
| 233 DCHECK(row_index > CONTENT_SETTINGS_TYPE_DEFAULT && | 233 DCHECK(row_index > CONTENT_SETTINGS_TYPE_DEFAULT && |
| 234 row_index < CONTENT_SETTINGS_NUM_TYPES); | 234 row_index < CONTENT_SETTINGS_NUM_TYPES); |
| 235 | 235 |
| 236 last_selected_page_.SetValue(row_index); | 236 last_selected_page_.SetValue(row_index); |
| 237 | 237 |
| 238 if (row_index != gtk_notebook_get_current_page(GTK_NOTEBOOK(notebook_))) | 238 if (row_index != gtk_notebook_get_current_page(GTK_NOTEBOOK(notebook_))) |
| 239 gtk_notebook_set_current_page(GTK_NOTEBOOK(notebook_), row_index); | 239 gtk_notebook_set_current_page(GTK_NOTEBOOK(notebook_), row_index); |
| 240 } | 240 } |
| OLD | NEW |