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

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

Issue 165257: Build browser/sync files by default using a stubbed-out syncapi... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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/options_window.h" 5 #include "chrome/browser/options_window.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 "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 gtk_label_new( 110 gtk_label_new(
111 l10n_util::GetStringUTF8(IDS_OPTIONS_GENERAL_TAB_LABEL).c_str())); 111 l10n_util::GetStringUTF8(IDS_OPTIONS_GENERAL_TAB_LABEL).c_str()));
112 112
113 gtk_notebook_append_page( 113 gtk_notebook_append_page(
114 GTK_NOTEBOOK(notebook_), 114 GTK_NOTEBOOK(notebook_),
115 content_page_.get_page_widget(), 115 content_page_.get_page_widget(),
116 gtk_label_new( 116 gtk_label_new(
117 l10n_util::GetStringUTF8(IDS_OPTIONS_CONTENT_TAB_LABEL).c_str())); 117 l10n_util::GetStringUTF8(IDS_OPTIONS_CONTENT_TAB_LABEL).c_str()));
118 118
119 #ifdef CHROME_PERSONALIZATION 119 #ifdef CHROME_PERSONALIZATION
120 if (!Personalization::IsP13NDisabled(profile)) { 120 if (Personalization::IsSyncEnabled(profile)) {
121 gtk_notebook_append_page( 121 gtk_notebook_append_page(
122 GTK_NOTEBOOK(notebook_), 122 GTK_NOTEBOOK(notebook_),
123 gtk_label_new("TODO personalization"), 123 gtk_label_new("TODO personalization"),
124 gtk_label_new( 124 gtk_label_new(
125 l10n_util::GetStringUTF8(IDS_OPTIONS_USER_DATA_TAB_LABEL).c_str())); 125 l10n_util::GetStringUTF8(IDS_OPTIONS_USER_DATA_TAB_LABEL).c_str()));
126 } 126 }
127 #endif 127 #endif
128 128
129 gtk_notebook_append_page( 129 gtk_notebook_append_page(
130 GTK_NOTEBOOK(notebook_), 130 GTK_NOTEBOOK(notebook_),
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 OptionsGroup highlight_group, 203 OptionsGroup highlight_group,
204 Profile* profile) { 204 Profile* profile) {
205 DCHECK(profile); 205 DCHECK(profile);
206 // If there's already an existing options window, activate it and switch to 206 // If there's already an existing options window, activate it and switch to
207 // the specified page. 207 // the specified page.
208 if (!options_window) { 208 if (!options_window) {
209 options_window = new OptionsWindowGtk(profile); 209 options_window = new OptionsWindowGtk(profile);
210 } 210 }
211 options_window->ShowOptionsPage(page, highlight_group); 211 options_window->ShowOptionsPage(page, highlight_group);
212 } 212 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698