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

Side by Side Diff: chrome/browser/ui/views/about_ipc_dialog.cc

Issue 7649006: more changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix another typo Created 9 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) 2011 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 // Need to include this before any other file because it defines 5 // Need to include this before any other file because it defines
6 // IPC_MESSAGE_LOG_ENABLED. We need to use it to define 6 // IPC_MESSAGE_LOG_ENABLED. We need to use it to define
7 // IPC_MESSAGE_MACROS_LOG_ENABLED so render_messages.h will generate the 7 // IPC_MESSAGE_MACROS_LOG_ENABLED so render_messages.h will generate the
8 // ViewMsgLog et al. functions. 8 // ViewMsgLog et al. functions.
9 #include "ipc/ipc_message.h" 9 #include "ipc/ipc_message.h"
10 10
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 if (!current_profile) 131 if (!current_profile)
132 return; 132 return;
133 PrefService* prefs = current_profile->GetPrefs(); 133 PrefService* prefs = current_profile->GetPrefs();
134 if (!prefs->FindPreference(prefs::kIpcDisabledMessages)) 134 if (!prefs->FindPreference(prefs::kIpcDisabledMessages))
135 return; 135 return;
136 ListValue* list = prefs->GetMutableList(prefs::kIpcDisabledMessages); 136 ListValue* list = prefs->GetMutableList(prefs::kIpcDisabledMessages);
137 list->Clear(); 137 list->Clear();
138 for (std::set<int>::const_iterator itr = disabled_messages_.begin(); 138 for (std::set<int>::const_iterator itr = disabled_messages_.begin();
139 itr != disabled_messages_.end(); 139 itr != disabled_messages_.end();
140 ++itr) { 140 ++itr) {
141 list->Append(Value::CreateIntegerValue(*itr)); 141 list->Append(base::NumberValue::New(*itr));
142 } 142 }
143 */ 143 */
144 } 144 }
145 145
146 void OnButtonClick(int id) { 146 void OnButtonClick(int id) {
147 int count = messages->GetItemCount(); 147 int count = messages->GetItemCount();
148 for (int i = 0; i < count; ++i) 148 for (int i = 0; i < count; ++i)
149 messages->SetCheckState(i, id == IDC_MessagesAll); 149 messages->SetCheckState(i, id == IDC_MessagesAll);
150 } 150 }
151 151
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 367
368 namespace browser { 368 namespace browser {
369 369
370 void ShowAboutIPCDialog() { 370 void ShowAboutIPCDialog() {
371 AboutIPCDialog::RunDialog(); 371 AboutIPCDialog::RunDialog();
372 } 372 }
373 373
374 } // namespace browser 374 } // namespace browser
375 375
376 #endif // IPC_MESSAGE_LOG_ENABLED 376 #endif // IPC_MESSAGE_LOG_ENABLED
OLDNEW
« no previous file with comments | « chrome/browser/ui/shell_dialogs_unittest.cc ('k') | chrome/browser/ui/webui/BidiCheckerWebUITest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698