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: chrome/browser/media/media_capture_devices_dispatcher.cc

Issue 917733003: Update whitelists related to Cast for Media Router Component Extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | chrome/common/extensions/api/_api_features.json » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/media_capture_devices_dispatcher.h" 5 #include "chrome/browser/media/media_capture_devices_dispatcher.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 return 126 return
127 // Dev 127 // Dev
128 origin.spec() == "chrome-extension://enhhojjnijigcajfphajepfemndkmdlo/" || 128 origin.spec() == "chrome-extension://enhhojjnijigcajfphajepfemndkmdlo/" ||
129 // Canary 129 // Canary
130 origin.spec() == "chrome-extension://hfaagokkkhdbgiakmmlclaapfelnkoah/" || 130 origin.spec() == "chrome-extension://hfaagokkkhdbgiakmmlclaapfelnkoah/" ||
131 // Beta (internal) 131 // Beta (internal)
132 origin.spec() == "chrome-extension://fmfcbgogabcbclcofgocippekhfcmgfj/" || 132 origin.spec() == "chrome-extension://fmfcbgogabcbclcofgocippekhfcmgfj/" ||
133 // Google Cast Beta 133 // Google Cast Beta
134 origin.spec() == "chrome-extension://dliochdbjfkdbacpmhlcpmleaejidimm/" || 134 origin.spec() == "chrome-extension://dliochdbjfkdbacpmhlcpmleaejidimm/" ||
135 // Google Cast Stable 135 // Google Cast Stable
136 origin.spec() == "chrome-extension://boadgeojelhgndaghljhdicfkmllpafd/"; 136 origin.spec() == "chrome-extension://boadgeojelhgndaghljhdicfkmllpafd/" ||
137 // http://crbug.com/457908
138 origin.spec() == "chrome-extension://ekpaaapppgpmolpcldedioblbkmijaca/" ||
139 origin.spec() == "chrome-extension://fjhoaacokmgbjemoflkofnenfaiekifl/";
137 } 140 }
138 141
139 bool IsExtensionWhitelistedForScreenCapture( 142 bool IsExtensionWhitelistedForScreenCapture(
140 const extensions::Extension* extension) { 143 const extensions::Extension* extension) {
141 #if defined(OS_CHROMEOS) 144 #if defined(OS_CHROMEOS)
142 std::string hash = base::SHA1HashString(extension->id()); 145 std::string hash = base::SHA1HashString(extension->id());
143 std::string hex_hash = base::HexEncode(hash.c_str(), hash.length()); 146 std::string hex_hash = base::HexEncode(hash.c_str(), hash.length());
144 147
145 // crbug.com/446688 148 // crbug.com/446688
146 return hex_hash == "4F25792AF1AA7483936DE29C07806F203C7170A0" || 149 return hex_hash == "4F25792AF1AA7483936DE29C07806F203C7170A0" ||
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after
1133 1136
1134 void MediaCaptureDevicesDispatcher::SetTestAudioCaptureDevices( 1137 void MediaCaptureDevicesDispatcher::SetTestAudioCaptureDevices(
1135 const MediaStreamDevices& devices) { 1138 const MediaStreamDevices& devices) {
1136 test_audio_devices_ = devices; 1139 test_audio_devices_ = devices;
1137 } 1140 }
1138 1141
1139 void MediaCaptureDevicesDispatcher::SetTestVideoCaptureDevices( 1142 void MediaCaptureDevicesDispatcher::SetTestVideoCaptureDevices(
1140 const MediaStreamDevices& devices) { 1143 const MediaStreamDevices& devices) {
1141 test_video_devices_ = devices; 1144 test_video_devices_ = devices;
1142 } 1145 }
OLDNEW
« no previous file with comments | « no previous file | chrome/common/extensions/api/_api_features.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698