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

Unified Diff: chrome/browser/extensions/api/tab_capture/tab_capture_api.cc

Issue 1224643008: Add a fake cast extension for testing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Add license Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/tab_capture/tab_capture_api.cc
diff --git a/chrome/browser/extensions/api/tab_capture/tab_capture_api.cc b/chrome/browser/extensions/api/tab_capture/tab_capture_api.cc
index 440c14fcc7168645c060e9b01107b36d63a8f39f..7de8d84619f60b515a573a7e02f4e5d1adcbebe7 100644
--- a/chrome/browser/extensions/api/tab_capture/tab_capture_api.cc
+++ b/chrome/browser/extensions/api/tab_capture/tab_capture_api.cc
@@ -58,6 +58,9 @@ const char kEnableAutoThrottlingKey[] = "enableAutoThrottling";
// they provide API's. If there are additional extension ids that need
// whitelisting and are *not* the Chromecast extension, add them to a new
// kWhitelist array.
+//
+// This list is also used by CastConfigDelegateChromeos to find official Cast
+// extensions.
const char* const kChromecastExtensionIds[] = {
"enhhojjnijigcajfphajepfemndkmdlo", // Dev
"pkedcjkdefgpdelpbcmbmeomcjbeemfm", // Dogfood
@@ -65,6 +68,7 @@ const char* const kChromecastExtensionIds[] = {
"hfaagokkkhdbgiakmmlclaapfelnkoah", // Canary
"dliochdbjfkdbacpmhlcpmleaejidimm", // Google Cast Beta
"boadgeojelhgndaghljhdicfkmllpafd", // Google Cast Stable
+ "hlgmmjhlnlapooncikdpiiokdjcdpjme", // Test cast extension
};
bool TabCaptureCaptureFunction::RunSync() {
« no previous file with comments | « chrome/browser/extensions/api/tab_capture/tab_capture_api.h ('k') | chrome/test/data/extensions/tray_cast/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698