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

Side by Side Diff: chrome/browser/chromeos/login/kiosk_browsertest.cc

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "apps/shell_window.h" 5 #include "apps/shell_window.h"
6 #include "apps/shell_window_registry.h" 6 #include "apps/shell_window_registry.h"
7 #include "apps/ui/native_app_window.h" 7 #include "apps/ui/native_app_window.h"
8 #include "ash/desktop_background/desktop_background_controller.h" 8 #include "ash/desktop_background/desktop_background_controller.h"
9 #include "ash/desktop_background/desktop_background_controller_observer.h" 9 #include "ash/desktop_background/desktop_background_controller_observer.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
(...skipping 24 matching lines...) Expand all
35 #include "chrome/browser/chromeos/login/wizard_controller.h" 35 #include "chrome/browser/chromeos/login/wizard_controller.h"
36 #include "chrome/browser/chromeos/net/network_portal_detector_test_impl.h" 36 #include "chrome/browser/chromeos/net/network_portal_detector_test_impl.h"
37 #include "chrome/browser/chromeos/policy/device_policy_cros_browser_test.h" 37 #include "chrome/browser/chromeos/policy/device_policy_cros_browser_test.h"
38 #include "chrome/browser/chromeos/settings/cros_settings.h" 38 #include "chrome/browser/chromeos/settings/cros_settings.h"
39 #include "chrome/browser/chromeos/settings/device_oauth2_token_service.h" 39 #include "chrome/browser/chromeos/settings/device_oauth2_token_service.h"
40 #include "chrome/browser/chromeos/settings/device_oauth2_token_service_factory.h " 40 #include "chrome/browser/chromeos/settings/device_oauth2_token_service_factory.h "
41 #include "chrome/browser/extensions/extension_service.h" 41 #include "chrome/browser/extensions/extension_service.h"
42 #include "chrome/browser/extensions/extension_system.h" 42 #include "chrome/browser/extensions/extension_system.h"
43 #include "chrome/browser/extensions/extension_test_message_listener.h" 43 #include "chrome/browser/extensions/extension_test_message_listener.h"
44 #include "chrome/browser/lifetime/application_lifetime.h" 44 #include "chrome/browser/lifetime/application_lifetime.h"
45 #include "chrome/browser/policy/cloud/policy_builder.h"
46 #include "chrome/browser/policy/proto/chromeos/chrome_device_policy.pb.h" 45 #include "chrome/browser/policy/proto/chromeos/chrome_device_policy.pb.h"
47 #include "chrome/browser/profiles/profile_manager.h" 46 #include "chrome/browser/profiles/profile_manager.h"
48 #include "chrome/browser/ui/browser.h" 47 #include "chrome/browser/ui/browser.h"
49 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" 48 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
50 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" 49 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h"
51 #include "chrome/common/chrome_paths.h" 50 #include "chrome/common/chrome_paths.h"
52 #include "chrome/common/chrome_switches.h" 51 #include "chrome/common/chrome_switches.h"
53 #include "chrome/common/pref_names.h" 52 #include "chrome/common/pref_names.h"
54 #include "chrome/test/base/in_process_browser_test.h" 53 #include "chrome/test/base/in_process_browser_test.h"
55 #include "chrome/test/base/interactive_test_utils.h" 54 #include "chrome/test/base/interactive_test_utils.h"
56 #include "chrome/test/base/ui_test_utils.h" 55 #include "chrome/test/base/ui_test_utils.h"
57 #include "chromeos/chromeos_switches.h" 56 #include "chromeos/chromeos_switches.h"
58 #include "chromeos/settings/cros_settings_names.h" 57 #include "chromeos/settings/cros_settings_names.h"
58 #include "components/policy/core/common/cloud/policy_builder.h"
59 #include "content/public/browser/notification_observer.h" 59 #include "content/public/browser/notification_observer.h"
60 #include "content/public/browser/notification_registrar.h" 60 #include "content/public/browser/notification_registrar.h"
61 #include "content/public/browser/notification_service.h" 61 #include "content/public/browser/notification_service.h"
62 #include "content/public/test/browser_test_utils.h" 62 #include "content/public/test/browser_test_utils.h"
63 #include "content/public/test/test_utils.h" 63 #include "content/public/test/test_utils.h"
64 #include "extensions/common/extension.h" 64 #include "extensions/common/extension.h"
65 #include "google_apis/gaia/fake_gaia.h" 65 #include "google_apis/gaia/fake_gaia.h"
66 #include "google_apis/gaia/gaia_constants.h" 66 #include "google_apis/gaia/gaia_constants.h"
67 #include "google_apis/gaia/gaia_switches.h" 67 #include "google_apis/gaia/gaia_switches.h"
68 #include "google_apis/gaia/gaia_urls.h" 68 #include "google_apis/gaia/gaia_urls.h"
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after
1038 content::WindowedNotificationObserver( 1038 content::WindowedNotificationObserver(
1039 chrome::NOTIFICATION_KIOSK_AUTOLAUNCH_WARNING_VISIBLE, 1039 chrome::NOTIFICATION_KIOSK_AUTOLAUNCH_WARNING_VISIBLE,
1040 content::NotificationService::AllSources()).Wait(); 1040 content::NotificationService::AllSources()).Wait();
1041 1041
1042 // Wait for the wallpaper to load. 1042 // Wait for the wallpaper to load.
1043 WaitForWallpaper(); 1043 WaitForWallpaper();
1044 EXPECT_TRUE(wallpaper_loaded()); 1044 EXPECT_TRUE(wallpaper_loaded());
1045 } 1045 }
1046 1046
1047 } // namespace chromeos 1047 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698