| 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 "chrome/browser/ui/webui/options/supervised_user_create_confirm_handler
.h" | 5 #include "chrome/browser/ui/webui/options/supervised_user_create_confirm_handler
.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/scoped_observer.h" | 9 #include "base/scoped_observer.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| 11 #include "base/value_conversions.h" | 11 #include "base/value_conversions.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/profiles/profile_info_cache.h" | 15 #include "chrome/browser/profiles/profile_info_cache.h" |
| 16 #include "chrome/browser/profiles/profile_info_cache_observer.h" | 16 #include "chrome/browser/profiles/profile_info_cache_observer.h" |
| 17 #include "chrome/browser/profiles/profile_manager.h" | 17 #include "chrome/browser/profiles/profile_manager.h" |
| 18 #include "chrome/browser/profiles/profile_window.h" | 18 #include "chrome/browser/profiles/profile_window.h" |
| 19 #include "chrome/browser/signin/signin_manager_factory.h" | 19 #include "chrome/browser/signin/signin_manager_factory.h" |
| 20 #include "chrome/browser/ui/browser_finder.h" | 20 #include "chrome/browser/ui/browser_finder.h" |
| 21 #include "chrome/browser/ui/host_desktop.h" | |
| 22 #include "chrome/browser/ui/startup/startup_types.h" | 21 #include "chrome/browser/ui/startup/startup_types.h" |
| 23 #include "chrome/common/url_constants.h" | 22 #include "chrome/common/url_constants.h" |
| 24 #include "chrome/grit/generated_resources.h" | 23 #include "chrome/grit/generated_resources.h" |
| 25 #include "components/signin/core/browser/signin_manager.h" | 24 #include "components/signin/core/browser/signin_manager.h" |
| 26 #include "components/signin/core/browser/signin_manager_base.h" | 25 #include "components/signin/core/browser/signin_manager_base.h" |
| 27 #include "content/public/browser/web_ui.h" | 26 #include "content/public/browser/web_ui.h" |
| 28 #include "ui/base/l10n/l10n_util.h" | 27 #include "ui/base/l10n/l10n_util.h" |
| 28 #include "ui/gfx/host_desktop_type.h" |
| 29 | 29 |
| 30 namespace options { | 30 namespace options { |
| 31 | 31 |
| 32 // ProfileUpdateObserver------------------------------------------------------ | 32 // ProfileUpdateObserver------------------------------------------------------ |
| 33 | 33 |
| 34 class SupervisedUserCreateConfirmHandler::ProfileUpdateObserver | 34 class SupervisedUserCreateConfirmHandler::ProfileUpdateObserver |
| 35 : public ProfileInfoCacheObserver { | 35 : public ProfileInfoCacheObserver { |
| 36 public: | 36 public: |
| 37 ProfileUpdateObserver(ProfileInfoCache* profile_info_cache, | 37 ProfileUpdateObserver(ProfileInfoCache* profile_info_cache, |
| 38 SupervisedUserCreateConfirmHandler* handler) | 38 SupervisedUserCreateConfirmHandler* handler) |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 | 164 |
| 165 profiles::FindOrCreateNewWindowForProfile( | 165 profiles::FindOrCreateNewWindowForProfile( |
| 166 profile, | 166 profile, |
| 167 chrome::startup::IS_PROCESS_STARTUP, | 167 chrome::startup::IS_PROCESS_STARTUP, |
| 168 chrome::startup::IS_FIRST_RUN, | 168 chrome::startup::IS_FIRST_RUN, |
| 169 desktop_type, | 169 desktop_type, |
| 170 false); | 170 false); |
| 171 } | 171 } |
| 172 | 172 |
| 173 } // namespace options | 173 } // namespace options |
| OLD | NEW |