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

Side by Side Diff: chrome/browser/ui/webui/options2/content_settings_handler2.cc

Issue 10032020: [settings] remove unused strings bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/webui/options2/content_settings_handler2.h" 5 #include "chrome/browser/ui/webui/options2/content_settings_handler2.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 } 200 }
201 201
202 ContentSettingsHandler::~ContentSettingsHandler() { 202 ContentSettingsHandler::~ContentSettingsHandler() {
203 } 203 }
204 204
205 void ContentSettingsHandler::GetLocalizedValues( 205 void ContentSettingsHandler::GetLocalizedValues(
206 DictionaryValue* localized_strings) { 206 DictionaryValue* localized_strings) {
207 DCHECK(localized_strings); 207 DCHECK(localized_strings);
208 208
209 static OptionsStringResource resources[] = { 209 static OptionsStringResource resources[] = {
210 { "content_exceptions", IDS_COOKIES_EXCEPTIONS_BUTTON },
211 { "allowException", IDS_EXCEPTIONS_ALLOW_BUTTON }, 210 { "allowException", IDS_EXCEPTIONS_ALLOW_BUTTON },
212 { "blockException", IDS_EXCEPTIONS_BLOCK_BUTTON }, 211 { "blockException", IDS_EXCEPTIONS_BLOCK_BUTTON },
213 { "sessionException", IDS_EXCEPTIONS_SESSION_ONLY_BUTTON }, 212 { "sessionException", IDS_EXCEPTIONS_SESSION_ONLY_BUTTON },
214 { "askException", IDS_EXCEPTIONS_ASK_BUTTON }, 213 { "askException", IDS_EXCEPTIONS_ASK_BUTTON },
215 { "addExceptionRow", IDS_EXCEPTIONS_ADD_BUTTON },
216 { "removeExceptionRow", IDS_EXCEPTIONS_REMOVE_BUTTON },
217 { "editExceptionRow", IDS_EXCEPTIONS_EDIT_BUTTON },
218 { "otr_exceptions_explanation", IDS_EXCEPTIONS_OTR_LABEL }, 214 { "otr_exceptions_explanation", IDS_EXCEPTIONS_OTR_LABEL },
219 { "examplePattern", IDS_EXCEPTIONS_PATTERN_EXAMPLE },
220 { "addNewExceptionInstructions", IDS_EXCEPTIONS_ADD_NEW_INSTRUCTIONS }, 215 { "addNewExceptionInstructions", IDS_EXCEPTIONS_ADD_NEW_INSTRUCTIONS },
221 { "manage_exceptions", IDS_EXCEPTIONS_MANAGE }, 216 { "manage_exceptions", IDS_EXCEPTIONS_MANAGE },
222 { "manage_handlers", IDS_HANDLERS_MANAGE }, 217 { "manage_handlers", IDS_HANDLERS_MANAGE },
223 { "exceptionPatternHeader", IDS_EXCEPTIONS_PATTERN_HEADER }, 218 { "exceptionPatternHeader", IDS_EXCEPTIONS_PATTERN_HEADER },
224 { "exceptionBehaviorHeader", IDS_EXCEPTIONS_ACTION_HEADER }, 219 { "exceptionBehaviorHeader", IDS_EXCEPTIONS_ACTION_HEADER },
225 // Cookies filter. 220 // Cookies filter.
226 { "cookies_tab_label", IDS_COOKIES_TAB_LABEL }, 221 { "cookies_tab_label", IDS_COOKIES_TAB_LABEL },
227 { "cookies_header", IDS_COOKIES_HEADER }, 222 { "cookies_header", IDS_COOKIES_HEADER },
228 { "cookies_allow", IDS_COOKIES_ALLOW_RADIO }, 223 { "cookies_allow", IDS_COOKIES_ALLOW_RADIO },
229 { "cookies_block", IDS_COOKIES_BLOCK_RADIO }, 224 { "cookies_block", IDS_COOKIES_BLOCK_RADIO },
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 912
918 HostContentSettingsMap* 913 HostContentSettingsMap*
919 ContentSettingsHandler::GetOTRContentSettingsMap() { 914 ContentSettingsHandler::GetOTRContentSettingsMap() {
920 Profile* profile = Profile::FromWebUI(web_ui()); 915 Profile* profile = Profile::FromWebUI(web_ui());
921 if (profile->HasOffTheRecordProfile()) 916 if (profile->HasOffTheRecordProfile())
922 return profile->GetOffTheRecordProfile()->GetHostContentSettingsMap(); 917 return profile->GetOffTheRecordProfile()->GetHostContentSettingsMap();
923 return NULL; 918 return NULL;
924 } 919 }
925 920
926 } // namespace options2 921 } // namespace options2
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698