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

Side by Side Diff: chrome/browser/chromeos/login/saml/saml_browsertest.cc

Issue 2476493003: Remove FundamentalValue
Patch Set: Fix Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <cstring> 5 #include <cstring>
6 #include <memory> 6 #include <memory>
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after
1051 ->GetShillManagerClient() 1051 ->GetShillManagerClient()
1052 ->GetTestInterface() 1052 ->GetTestInterface()
1053 ->SetupDefaultEnvironment(); 1053 ->SetupDefaultEnvironment();
1054 } 1054 }
1055 1055
1056 void SAMLPolicyTest::SetSAMLOfflineSigninTimeLimitPolicy(int limit) { 1056 void SAMLPolicyTest::SetSAMLOfflineSigninTimeLimitPolicy(int limit) {
1057 policy::PolicyMap user_policy; 1057 policy::PolicyMap user_policy;
1058 user_policy.Set(policy::key::kSAMLOfflineSigninTimeLimit, 1058 user_policy.Set(policy::key::kSAMLOfflineSigninTimeLimit,
1059 policy::POLICY_LEVEL_MANDATORY, policy::POLICY_SCOPE_USER, 1059 policy::POLICY_LEVEL_MANDATORY, policy::POLICY_SCOPE_USER,
1060 policy::POLICY_SOURCE_CLOUD, 1060 policy::POLICY_SOURCE_CLOUD,
1061 base::MakeUnique<base::FundamentalValue>(limit), nullptr); 1061 base::MakeUnique<base::Value>(limit), nullptr);
1062 provider_.UpdateChromePolicy(user_policy); 1062 provider_.UpdateChromePolicy(user_policy);
1063 base::RunLoop().RunUntilIdle(); 1063 base::RunLoop().RunUntilIdle();
1064 } 1064 }
1065 1065
1066 void SAMLPolicyTest::EnableTransferSAMLCookiesPolicy() { 1066 void SAMLPolicyTest::EnableTransferSAMLCookiesPolicy() {
1067 em::ChromeDeviceSettingsProto& proto(device_policy_->payload()); 1067 em::ChromeDeviceSettingsProto& proto(device_policy_->payload());
1068 proto.mutable_saml_settings()->set_transfer_saml_cookies(true); 1068 proto.mutable_saml_settings()->set_transfer_saml_cookies(true);
1069 1069
1070 base::RunLoop run_loop; 1070 base::RunLoop run_loop;
1071 std::unique_ptr<CrosSettings::ObserverSubscription> observer = 1071 std::unique_ptr<CrosSettings::ObserverSubscription> observer =
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
1397 1397
1398 // Scraping one password should finish login. 1398 // Scraping one password should finish login.
1399 content::WindowedNotificationObserver session_start_waiter( 1399 content::WindowedNotificationObserver session_start_waiter(
1400 chrome::NOTIFICATION_SESSION_STARTED, 1400 chrome::NOTIFICATION_SESSION_STARTED,
1401 content::NotificationService::AllSources()); 1401 content::NotificationService::AllSources());
1402 ExecuteJsInSigninFrame("document.getElementById('Submit').click();"); 1402 ExecuteJsInSigninFrame("document.getElementById('Submit').click();");
1403 session_start_waiter.Wait(); 1403 session_start_waiter.Wait();
1404 } 1404 }
1405 1405
1406 } // namespace chromeos 1406 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698