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

Side by Side Diff: chrome/browser/content_settings/content_settings_internal_extension_provider.cc

Issue 265503003: Enable file_handlers and chrome.app.runtime for QuickOffice. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback, less hacky Created 6 years, 7 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/content_settings/content_settings_internal_extension_pr ovider.h" 5 #include "chrome/browser/content_settings/content_settings_internal_extension_pr ovider.h"
6 6
7 #include "chrome/browser/chrome_notification_types.h" 7 #include "chrome/browser/chrome_notification_types.h"
8 #include "chrome/browser/content_settings/content_settings_rule.h" 8 #include "chrome/browser/content_settings/content_settings_rule.h"
9 #include "chrome/browser/extensions/extension_service.h" 9 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/common/chrome_content_client.h" 10 #include "chrome/common/chrome_content_client.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 "B7D5B52D1E5B106288BD7F278CAFA5E8D76108B0", 101 "B7D5B52D1E5B106288BD7F278CAFA5E8D76108B0",
102 "89349DBAA2C4022FB244AA50182AB60934EB41EE", 102 "89349DBAA2C4022FB244AA50182AB60934EB41EE",
103 "CB593E510640572A995CB1B6D41BD85ED51E63F8", 103 "CB593E510640572A995CB1B6D41BD85ED51E63F8",
104 "1AD1AC86C87969CD3434FA08D99DBA6840AEA612", 104 "1AD1AC86C87969CD3434FA08D99DBA6840AEA612",
105 "9C2EA21D7975BDF2B3C01C3A454EE44854067A6D", 105 "9C2EA21D7975BDF2B3C01C3A454EE44854067A6D",
106 "D2C488C80C3C90C3E01A991112A05E37831E17D0", 106 "D2C488C80C3C90C3E01A991112A05E37831E17D0",
107 "6EEC061C0E74B46C7B5BE2EEFA49436368F4988F", 107 "6EEC061C0E74B46C7B5BE2EEFA49436368F4988F",
108 "8B344D9E8A4C505EF82A0DBBC25B8BD1F984E777", 108 "8B344D9E8A4C505EF82A0DBBC25B8BD1F984E777",
109 "E06AFCB1EB0EFD237824CC4AC8FDD3D43E8BC868" 109 "E06AFCB1EB0EFD237824CC4AC8FDD3D43E8BC868"
110 }; 110 };
111 if (extensions::SimpleFeature::IsIdInWhitelist( 111 if (extensions::SimpleFeature::IsIdInList(
112 host->extension()->id(), 112 host->extension()->id(),
113 std::set<std::string>( 113 std::set<std::string>(
114 kAppWhitelist, kAppWhitelist + arraysize(kAppWhitelist)))) { 114 kAppWhitelist, kAppWhitelist + arraysize(kAppWhitelist)))) {
115 SetContentSettingForExtensionAndResource( 115 SetContentSettingForExtensionAndResource(
116 host->extension(), 116 host->extension(),
117 ChromeContentClient::kRemotingViewerPluginPath, 117 ChromeContentClient::kRemotingViewerPluginPath,
118 CONTENT_SETTING_ALLOW); 118 CONTENT_SETTING_ALLOW);
119 } 119 }
120 } 120 }
121 121
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 base::Value::CreateIntegerValue(setting)); 180 base::Value::CreateIntegerValue(setting));
181 } 181 }
182 } 182 }
183 NotifyObservers(primary_pattern, 183 NotifyObservers(primary_pattern,
184 secondary_pattern, 184 secondary_pattern,
185 CONTENT_SETTINGS_TYPE_PLUGINS, 185 CONTENT_SETTINGS_TYPE_PLUGINS,
186 resource); 186 resource);
187 } 187 }
188 188
189 } // namespace content_settings 189 } // namespace content_settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698