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

Side by Side Diff: chrome/browser/media/protected_media_identifier_permission_context.cc

Issue 2898663002: Implement feature policy checks in the browser process (Closed)
Patch Set: Implement feature policy checks in the browser process Created 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/media/protected_media_identifier_permission_context.h" 5 #include "chrome/browser/media/protected_media_identifier_permission_context.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/metrics/user_metrics.h" 8 #include "base/metrics/user_metrics.h"
9 #include "base/strings/string_split.h" 9 #include "base/strings/string_split.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 23 matching lines...) Expand all
34 #error This file currently only supports Chrome OS and Android. 34 #error This file currently only supports Chrome OS and Android.
35 #endif 35 #endif
36 36
37 #if defined(OS_CHROMEOS) 37 #if defined(OS_CHROMEOS)
38 using chromeos::attestation::PlatformVerificationDialog; 38 using chromeos::attestation::PlatformVerificationDialog;
39 #endif 39 #endif
40 40
41 ProtectedMediaIdentifierPermissionContext:: 41 ProtectedMediaIdentifierPermissionContext::
42 ProtectedMediaIdentifierPermissionContext(Profile* profile) 42 ProtectedMediaIdentifierPermissionContext(Profile* profile)
43 : PermissionContextBase(profile, 43 : PermissionContextBase(profile,
44 CONTENT_SETTINGS_TYPE_PROTECTED_MEDIA_IDENTIFIER) 44 CONTENT_SETTINGS_TYPE_PROTECTED_MEDIA_IDENTIFIER,
45 blink::WebFeaturePolicyFeature::kEme)
45 #if defined(OS_CHROMEOS) 46 #if defined(OS_CHROMEOS)
46 , 47 ,
47 weak_factory_(this) 48 weak_factory_(this)
48 #endif 49 #endif
49 { 50 {
50 } 51 }
51 52
52 ProtectedMediaIdentifierPermissionContext:: 53 ProtectedMediaIdentifierPermissionContext::
53 ~ProtectedMediaIdentifierPermissionContext() { 54 ~ProtectedMediaIdentifierPermissionContext() {
54 } 55 }
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 content_setting = CONTENT_SETTING_BLOCK; 278 content_setting = CONTENT_SETTING_BLOCK;
278 persist = true; 279 persist = true;
279 break; 280 break;
280 } 281 }
281 282
282 NotifyPermissionSet( 283 NotifyPermissionSet(
283 id, requesting_origin, embedding_origin, callback, 284 id, requesting_origin, embedding_origin, callback,
284 persist, content_setting); 285 persist, content_setting);
285 } 286 }
286 #endif 287 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698