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

Side by Side Diff: chrome/browser/ui/webui/site_settings_helper.cc

Issue 2936003003: MD Settings: Set all content setting values in Site Details Javascript. (Closed)
Patch Set: Review comments. Created 3 years, 5 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/site_settings_helper.h" 5 #include "chrome/browser/ui/webui/site_settings_helper.h"
6 6
7 #include <functional> 7 #include <functional>
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/browser/permissions/chooser_context_base.h" 12 #include "chrome/browser/permissions/chooser_context_base.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/usb/usb_chooser_context_factory.h" 14 #include "chrome/browser/usb/usb_chooser_context_factory.h"
15 #include "chrome/common/pref_names.h" 15 #include "chrome/common/pref_names.h"
16 #include "components/content_settings/core/browser/host_content_settings_map.h" 16 #include "components/content_settings/core/browser/host_content_settings_map.h"
17 #include "components/prefs/pref_service.h" 17 #include "components/prefs/pref_service.h"
18 #include "extensions/browser/extension_registry.h" 18 #include "extensions/browser/extension_registry.h"
19 19
20 namespace site_settings { 20 namespace site_settings {
21 21
22 const char kAppName[] = "appName"; 22 const char kAppName[] = "appName";
23 const char kAppId[] = "appId"; 23 const char kAppId[] = "appId";
24 const char kSetting[] = "setting"; 24 const char kSetting[] = "setting";
25 const char kOrigin[] = "origin"; 25 const char kOrigin[] = "origin";
26 const char kDisplayName[] = "displayName"; 26 const char kDisplayName[] = "displayName";
27 const char kOriginForFavicon[] = "originForFavicon"; 27 const char kOriginForFavicon[] = "originForFavicon";
28 const char kExtensionProviderId[] = "extension";
28 const char kPolicyProviderId[] = "policy"; 29 const char kPolicyProviderId[] = "policy";
29 const char kSource[] = "source"; 30 const char kSource[] = "source";
30 const char kIncognito[] = "incognito"; 31 const char kIncognito[] = "incognito";
31 const char kEmbeddingOrigin[] = "embeddingOrigin"; 32 const char kEmbeddingOrigin[] = "embeddingOrigin";
32 const char kPreferencesSource[] = "preference"; 33 const char kPreferencesSource[] = "preference";
33 const char kObject[] = "object"; 34 const char kObject[] = "object";
34 const char kObjectName[] = "objectName"; 35 const char kObjectName[] = "objectName";
35 36
36 const char kGroupTypeUsb[] = "usb-devices"; 37 const char kGroupTypeUsb[] = "usb-devices";
37 38
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 } 455 }
455 } 456 }
456 457
457 for (auto& one_provider_exceptions : all_provider_exceptions) { 458 for (auto& one_provider_exceptions : all_provider_exceptions) {
458 for (auto& exception : one_provider_exceptions) 459 for (auto& exception : one_provider_exceptions)
459 exceptions->Append(std::move(exception)); 460 exceptions->Append(std::move(exception));
460 } 461 }
461 } 462 }
462 463
463 } // namespace site_settings 464 } // namespace site_settings
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/site_settings_helper.h ('k') | chrome/test/data/webui/settings/site_details_permission_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698