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

Unified Diff: chrome/browser/chromeos/settings/device_settings_provider.cc

Issue 1936903002: Allow SAML logins to use the webcam (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comment to JS re: C++ permission check Created 4 years, 8 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/chromeos/settings/device_settings_provider.cc
diff --git a/chrome/browser/chromeos/settings/device_settings_provider.cc b/chrome/browser/chromeos/settings/device_settings_provider.cc
index be2bb1e6b2aca45800199ad1932df8989a50706c..393f7982858f00bd7a8d2333d0980f7034d0e90d 100644
--- a/chrome/browser/chromeos/settings/device_settings_provider.cc
+++ b/chrome/browser/chromeos/settings/device_settings_provider.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/chromeos/settings/device_settings_provider.h"
+#include <memory.h>
#include <stddef.h>
#include <utility>
@@ -70,6 +71,7 @@ const char* const kKnownSettings[] = {
kHeartbeatEnabled,
kHeartbeatFrequency,
kLoginAuthenticationBehavior,
+ kLoginVideoCaptureAllowedUrls,
kPolicyMissingMitigationMode,
kRebootOnShutdown,
kReleaseChannel,
@@ -270,6 +272,17 @@ void DecodeLoginPolicies(
kLoginAuthenticationBehavior,
policy.login_authentication_behavior().login_authentication_behavior());
}
+
+ if (policy.has_login_video_capture_allowed_urls()) {
+ std::unique_ptr<base::ListValue> list(new base::ListValue());
+ const em::LoginVideoCaptureAllowedUrlsProto&
+ login_video_capture_allowed_urls_proto =
+ policy.login_video_capture_allowed_urls();
+ for (const auto& value : login_video_capture_allowed_urls_proto.urls()) {
+ list->Append(new base::StringValue(value));
+ }
+ new_values_cache->SetValue(kLoginVideoCaptureAllowedUrls, std::move(list));
+ }
}
void DecodeNetworkPolicies(
@@ -576,7 +589,6 @@ void DeviceSettingsProvider::DoSet(const std::string& path,
return;
}
}
-
}
void DeviceSettingsProvider::OwnershipStatusChanged() {

Powered by Google App Engine
This is Rietveld 408576698