| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "chrome/browser/ui/webui/signin/user_manager_screen_handler.h" | 5 #include "chrome/browser/ui/webui/signin/user_manager_screen_handler.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 #include "chrome/browser/ui/webui/profile_helper.h" | 45 #include "chrome/browser/ui/webui/profile_helper.h" |
| 46 #include "chrome/common/chrome_features.h" | 46 #include "chrome/common/chrome_features.h" |
| 47 #include "chrome/common/pref_names.h" | 47 #include "chrome/common/pref_names.h" |
| 48 #include "chrome/common/url_constants.h" | 48 #include "chrome/common/url_constants.h" |
| 49 #include "chrome/grit/chromium_strings.h" | 49 #include "chrome/grit/chromium_strings.h" |
| 50 #include "chrome/grit/generated_resources.h" | 50 #include "chrome/grit/generated_resources.h" |
| 51 #include "components/prefs/pref_service.h" | 51 #include "components/prefs/pref_service.h" |
| 52 #include "components/proximity_auth/screenlock_bridge.h" | 52 #include "components/proximity_auth/screenlock_bridge.h" |
| 53 #include "components/signin/core/account_id/account_id.h" | 53 #include "components/signin/core/account_id/account_id.h" |
| 54 #include "components/signin/core/common/profile_management_switches.h" | 54 #include "components/signin/core/common/profile_management_switches.h" |
| 55 #include "components/strings/grit/components_strings.h" |
| 55 #include "content/public/browser/notification_service.h" | 56 #include "content/public/browser/notification_service.h" |
| 56 #include "content/public/browser/storage_partition.h" | 57 #include "content/public/browser/storage_partition.h" |
| 57 #include "content/public/browser/user_metrics.h" | 58 #include "content/public/browser/user_metrics.h" |
| 58 #include "content/public/browser/web_contents.h" | 59 #include "content/public/browser/web_contents.h" |
| 59 #include "content/public/browser/web_ui.h" | 60 #include "content/public/browser/web_ui.h" |
| 60 #include "google_apis/gaia/gaia_auth_fetcher.h" | 61 #include "google_apis/gaia/gaia_auth_fetcher.h" |
| 61 #include "google_apis/gaia/gaia_constants.h" | 62 #include "google_apis/gaia/gaia_constants.h" |
| 62 #include "grit/components_strings.h" | |
| 63 #include "third_party/skia/include/core/SkBitmap.h" | 63 #include "third_party/skia/include/core/SkBitmap.h" |
| 64 #include "ui/base/l10n/l10n_util.h" | 64 #include "ui/base/l10n/l10n_util.h" |
| 65 #include "ui/base/resource/resource_bundle.h" | 65 #include "ui/base/resource/resource_bundle.h" |
| 66 #include "ui/base/webui/web_ui_util.h" | 66 #include "ui/base/webui/web_ui_util.h" |
| 67 #include "ui/gfx/image/image.h" | 67 #include "ui/gfx/image/image.h" |
| 68 #include "ui/gfx/image/image_skia.h" | 68 #include "ui/gfx/image/image_skia.h" |
| 69 #include "ui/gfx/image/image_util.h" | 69 #include "ui/gfx/image/image_util.h" |
| 70 | 70 |
| 71 #if defined(USE_ASH) | 71 #if defined(USE_ASH) |
| 72 #include "ash/shell.h" // nogncheck | 72 #include "ash/shell.h" // nogncheck |
| (...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1038 Profile* profile, Profile::CreateStatus profile_create_status) { | 1038 Profile* profile, Profile::CreateStatus profile_create_status) { |
| 1039 Browser* browser = chrome::FindAnyBrowser(profile, false); | 1039 Browser* browser = chrome::FindAnyBrowser(profile, false); |
| 1040 if (browser && browser->window()) { | 1040 if (browser && browser->window()) { |
| 1041 OnBrowserWindowReady(browser); | 1041 OnBrowserWindowReady(browser); |
| 1042 } else { | 1042 } else { |
| 1043 registrar_.Add(this, | 1043 registrar_.Add(this, |
| 1044 chrome::NOTIFICATION_BROWSER_WINDOW_READY, | 1044 chrome::NOTIFICATION_BROWSER_WINDOW_READY, |
| 1045 content::NotificationService::AllSources()); | 1045 content::NotificationService::AllSources()); |
| 1046 } | 1046 } |
| 1047 } | 1047 } |
| OLD | NEW |