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

Side by Side Diff: Source/core/frame/OriginsUsingFeatures.cpp

Issue 1307663003: Update getUserMedia counts to count Promise API and secure origin use (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add actual counting of GetUserMedia.Secure Created 5 years, 3 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
« no previous file with comments | « Source/core/frame/OriginsUsingFeatures.h ('k') | Source/modules/mediastream/MediaDevices.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "config.h" 5 #include "config.h"
6 #include "core/frame/OriginsUsingFeatures.h" 6 #include "core/frame/OriginsUsingFeatures.h"
7 7
8 #include "bindings/core/v8/ScriptState.h" 8 #include "bindings/core/v8/ScriptState.h"
9 #include "core/dom/Document.h" 9 #include "core/dom/Document.h"
10 #include "core/page/Page.h" 10 #include "core/page/Page.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 if (get(Feature::DeviceMotionInsecureOrigin)) 148 if (get(Feature::DeviceMotionInsecureOrigin))
149 Platform::current()->recordRappor("PowerfulFeatureUse.Host.DeviceMotion. Insecure", origin); 149 Platform::current()->recordRappor("PowerfulFeatureUse.Host.DeviceMotion. Insecure", origin);
150 if (get(Feature::DeviceOrientationInsecureOrigin)) 150 if (get(Feature::DeviceOrientationInsecureOrigin))
151 Platform::current()->recordRappor("PowerfulFeatureUse.Host.DeviceOrienta tion.Insecure", origin); 151 Platform::current()->recordRappor("PowerfulFeatureUse.Host.DeviceOrienta tion.Insecure", origin);
152 if (get(Feature::FullscreenInsecureOrigin)) 152 if (get(Feature::FullscreenInsecureOrigin))
153 Platform::current()->recordRappor("PowerfulFeatureUse.Host.Fullscreen.In secure", origin); 153 Platform::current()->recordRappor("PowerfulFeatureUse.Host.Fullscreen.In secure", origin);
154 if (get(Feature::GeolocationInsecureOrigin)) 154 if (get(Feature::GeolocationInsecureOrigin))
155 Platform::current()->recordRappor("PowerfulFeatureUse.Host.Geolocation.I nsecure", origin); 155 Platform::current()->recordRappor("PowerfulFeatureUse.Host.Geolocation.I nsecure", origin);
156 if (get(Feature::GetUserMediaInsecureOrigin)) 156 if (get(Feature::GetUserMediaInsecureOrigin))
157 Platform::current()->recordRappor("PowerfulFeatureUse.Host.GetUserMedia. Insecure", origin); 157 Platform::current()->recordRappor("PowerfulFeatureUse.Host.GetUserMedia. Insecure", origin);
158 if (get(Feature::GetUserMediaSecureOrigin))
159 Platform::current()->recordRappor("PowerfulFeatureUse.Host.GetUserMedia. Secure", origin);
158 } 160 }
159 161
160 void OriginsUsingFeatures::Value::recordNameToRappor(const String& name) 162 void OriginsUsingFeatures::Value::recordNameToRappor(const String& name)
161 { 163 {
162 if (get(Feature::EventPath)) 164 if (get(Feature::EventPath))
163 Platform::current()->recordRappor("WebComponents.EventPath.Extensions", name); 165 Platform::current()->recordRappor("WebComponents.EventPath.Extensions", name);
164 } 166 }
165 167
166 } // namespace blink 168 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/frame/OriginsUsingFeatures.h ('k') | Source/modules/mediastream/MediaDevices.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698