| Index: chrome/browser/generic_sensor/sensor_permission_context.cc
 | 
| diff --git a/chrome/browser/generic_sensor/sensor_permission_context.cc b/chrome/browser/generic_sensor/sensor_permission_context.cc
 | 
| new file mode 100644
 | 
| index 0000000000000000000000000000000000000000..0389cb4613acafc070a14e3ec5c644ad63a81b0e
 | 
| --- /dev/null
 | 
| +++ b/chrome/browser/generic_sensor/sensor_permission_context.cc
 | 
| @@ -0,0 +1,26 @@
 | 
| +// Copyright 2017 The Chromium Authors. All rights reserved.
 | 
| +// Use of this source code is governed by a BSD-style license that can be
 | 
| +// found in the LICENSE file.
 | 
| +
 | 
| +#include "chrome/browser/generic_sensor/sensor_permission_context.h"
 | 
| +
 | 
| +SensorPermissionContext::SensorPermissionContext(Profile* profile)
 | 
| +    : PermissionContextBase(profile,
 | 
| +                            CONTENT_SETTINGS_TYPE_SENSORS,
 | 
| +                            blink::WebFeaturePolicyFeature::kNotFound) {}
 | 
| +
 | 
| +SensorPermissionContext::~SensorPermissionContext() {}
 | 
| +
 | 
| +ContentSetting SensorPermissionContext::GetPermissionStatusInternal(
 | 
| +    content::RenderFrameHost* render_frame_host,
 | 
| +    const GURL& requesting_origin,
 | 
| +    const GURL& embedding_origin) const {
 | 
| +  if (requesting_origin != embedding_origin)
 | 
| +    return CONTENT_SETTING_BLOCK;
 | 
| +
 | 
| +  return CONTENT_SETTING_ALLOW;
 | 
| +}
 | 
| +
 | 
| +bool SensorPermissionContext::IsRestrictedToSecureOrigins() const {
 | 
| +  return true;
 | 
| +}
 | 
| 
 |