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

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

Issue 10584042: Bring up a content settings icon for ungestured registerProtocolHandler call. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 {CONTENT_SETTINGS_TYPE_IMAGES, "images"}, 329 {CONTENT_SETTINGS_TYPE_IMAGES, "images"},
330 {CONTENT_SETTINGS_TYPE_JAVASCRIPT, "javascript"}, 330 {CONTENT_SETTINGS_TYPE_JAVASCRIPT, "javascript"},
331 {CONTENT_SETTINGS_TYPE_PLUGINS, "plugins"}, 331 {CONTENT_SETTINGS_TYPE_PLUGINS, "plugins"},
332 {CONTENT_SETTINGS_TYPE_POPUPS, "popups"}, 332 {CONTENT_SETTINGS_TYPE_POPUPS, "popups"},
333 {CONTENT_SETTINGS_TYPE_GEOLOCATION, "location"}, 333 {CONTENT_SETTINGS_TYPE_GEOLOCATION, "location"},
334 {CONTENT_SETTINGS_TYPE_NOTIFICATIONS, "notifications"}, 334 {CONTENT_SETTINGS_TYPE_NOTIFICATIONS, "notifications"},
335 {CONTENT_SETTINGS_TYPE_INTENTS, "intents"}, 335 {CONTENT_SETTINGS_TYPE_INTENTS, "intents"},
336 {CONTENT_SETTINGS_TYPE_AUTO_SELECT_CERTIFICATE, "auto-select-certificate"}, 336 {CONTENT_SETTINGS_TYPE_AUTO_SELECT_CERTIFICATE, "auto-select-certificate"},
337 {CONTENT_SETTINGS_TYPE_FULLSCREEN, "fullscreen"}, 337 {CONTENT_SETTINGS_TYPE_FULLSCREEN, "fullscreen"},
338 {CONTENT_SETTINGS_TYPE_MOUSELOCK, "mouselock"}, 338 {CONTENT_SETTINGS_TYPE_MOUSELOCK, "mouselock"},
339 {CONTENT_SETTINGS_TYPE_REGISTER_PROTOCOL_HANDLER,
340 "register-protocol-handler"},
339 {EX_CONTENT_SETTINGS_TYPE_PEPPER_FLASH_CAMERAMIC, "pepper-flash-cameramic"}, 341 {EX_CONTENT_SETTINGS_TYPE_PEPPER_FLASH_CAMERAMIC, "pepper-flash-cameramic"},
340 }; 342 };
341 343
342 ContentSettingsHandler::ContentSettingsHandler() { 344 ContentSettingsHandler::ContentSettingsHandler() {
343 } 345 }
344 346
345 ContentSettingsHandler::~ContentSettingsHandler() { 347 ContentSettingsHandler::~ContentSettingsHandler() {
346 } 348 }
347 349
348 void ContentSettingsHandler::GetLocalizedValues( 350 void ContentSettingsHandler::GetLocalizedValues(
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
1257 for (size_t i = 0; i < arraysize(kExContentSettingsTypeGroupNames); ++i) { 1259 for (size_t i = 0; i < arraysize(kExContentSettingsTypeGroupNames); ++i) {
1258 if (type == kExContentSettingsTypeGroupNames[i].type) 1260 if (type == kExContentSettingsTypeGroupNames[i].type)
1259 return kExContentSettingsTypeGroupNames[i].name; 1261 return kExContentSettingsTypeGroupNames[i].name;
1260 } 1262 }
1261 1263
1262 NOTREACHED(); 1264 NOTREACHED();
1263 return std::string(); 1265 return std::string();
1264 } 1266 }
1265 1267
1266 } // namespace options2 1268 } // namespace options2
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698