| OLD | NEW |
| 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 24 matching lines...) Expand all Loading... |
| 35 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" | 35 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" |
| 36 #include "chrome/browser/chromeos/login/wizard_controller.h" | 36 #include "chrome/browser/chromeos/login/wizard_controller.h" |
| 37 #include "chrome/browser/chromeos/policy/affiliation_test_helper.h" | 37 #include "chrome/browser/chromeos/policy/affiliation_test_helper.h" |
| 38 #include "chrome/browser/chromeos/policy/device_policy_builder.h" | 38 #include "chrome/browser/chromeos/policy/device_policy_builder.h" |
| 39 #include "chrome/browser/chromeos/policy/device_policy_cros_browser_test.h" | 39 #include "chrome/browser/chromeos/policy/device_policy_cros_browser_test.h" |
| 40 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h" | 40 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h" |
| 41 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 41 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| 42 #include "chrome/browser/chromeos/settings/cros_settings.h" | 42 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 43 #include "chrome/browser/policy/test/local_policy_test_server.h" | 43 #include "chrome/browser/policy/test/local_policy_test_server.h" |
| 44 #include "chrome/browser/profiles/profile.h" | 44 #include "chrome/browser/profiles/profile.h" |
| 45 #include "chrome/browser/ui/webui/signin/get_auth_frame.h" | 45 #include "chrome/browser/ui/webui/signin/signin_utils.h" |
| 46 #include "chrome/common/chrome_constants.h" | 46 #include "chrome/common/chrome_constants.h" |
| 47 #include "chrome/common/chrome_paths.h" | 47 #include "chrome/common/chrome_paths.h" |
| 48 #include "chrome/common/chrome_switches.h" | 48 #include "chrome/common/chrome_switches.h" |
| 49 #include "chrome/grit/generated_resources.h" | 49 #include "chrome/grit/generated_resources.h" |
| 50 #include "chrome/test/base/in_process_browser_test.h" | 50 #include "chrome/test/base/in_process_browser_test.h" |
| 51 #include "chromeos/chromeos_switches.h" | 51 #include "chromeos/chromeos_switches.h" |
| 52 #include "chromeos/cryptohome/system_salt_getter.h" | 52 #include "chromeos/cryptohome/system_salt_getter.h" |
| 53 #include "chromeos/dbus/cryptohome/key.pb.h" | 53 #include "chromeos/dbus/cryptohome/key.pb.h" |
| 54 #include "chromeos/dbus/cryptohome/rpc.pb.h" | 54 #include "chromeos/dbus/cryptohome/rpc.pb.h" |
| 55 #include "chromeos/dbus/cryptohome_client.h" | 55 #include "chromeos/dbus/cryptohome_client.h" |
| (...skipping 1304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1360 | 1360 |
| 1361 // Scraping one password should finish login. | 1361 // Scraping one password should finish login. |
| 1362 content::WindowedNotificationObserver session_start_waiter( | 1362 content::WindowedNotificationObserver session_start_waiter( |
| 1363 chrome::NOTIFICATION_SESSION_STARTED, | 1363 chrome::NOTIFICATION_SESSION_STARTED, |
| 1364 content::NotificationService::AllSources()); | 1364 content::NotificationService::AllSources()); |
| 1365 ExecuteJsInSigninFrame("document.getElementById('Submit').click();"); | 1365 ExecuteJsInSigninFrame("document.getElementById('Submit').click();"); |
| 1366 session_start_waiter.Wait(); | 1366 session_start_waiter.Wait(); |
| 1367 } | 1367 } |
| 1368 | 1368 |
| 1369 } // namespace chromeos | 1369 } // namespace chromeos |
| OLD | NEW |