| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/chromeos/login/screens/user_image_screen.h" | 5 #include "chrome/browser/chromeos/login/screens/user_image_screen.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/location.h" | 12 #include "base/location.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/message_loop/message_loop_proxy.h" | 14 #include "base/message_loop/message_loop_proxy.h" |
| 15 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
| 16 #include "base/timer/timer.h" | 16 #include "base/timer/timer.h" |
| 17 #include "base/values.h" | 17 #include "base/values.h" |
| 18 #include "chrome/browser/chrome_notification_types.h" | 18 #include "chrome/browser/chrome_notification_types.h" |
| 19 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" | 19 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" |
| 20 #include "chrome/browser/chromeos/camera_detector.h" | 20 #include "chrome/browser/chromeos/camera_detector.h" |
| 21 #include "chrome/browser/chromeos/login/default_user_images.h" | 21 #include "chrome/browser/chromeos/login/default_user_images.h" |
| 22 #include "chrome/browser/chromeos/login/login_utils.h" | 22 #include "chrome/browser/chromeos/login/login_utils.h" |
| 23 #include "chrome/browser/chromeos/login/screens/screen_observer.h" | 23 #include "chrome/browser/chromeos/login/screens/screen_observer.h" |
| 24 #include "chrome/browser/chromeos/login/user_image.h" | 24 #include "chrome/browser/chromeos/login/user_image.h" |
| 25 #include "chrome/browser/chromeos/login/user_image_manager.h" | 25 #include "chrome/browser/chromeos/login/user_image_manager.h" |
| 26 #include "chrome/browser/chromeos/login/user_manager.h" | 26 #include "chrome/browser/chromeos/login/user_manager.h" |
| 27 #include "chrome/browser/chromeos/login/wizard_controller.h" | 27 #include "chrome/browser/chromeos/login/wizard_controller.h" |
| 28 #include "chrome/browser/policy/policy_service.h" | |
| 29 #include "chrome/browser/policy/profile_policy_connector.h" | 28 #include "chrome/browser/policy/profile_policy_connector.h" |
| 30 #include "chrome/browser/policy/profile_policy_connector_factory.h" | 29 #include "chrome/browser/policy/profile_policy_connector_factory.h" |
| 31 #include "chrome/browser/profiles/profile.h" | 30 #include "chrome/browser/profiles/profile.h" |
| 32 #include "chrome/common/url_constants.h" | 31 #include "chrome/common/url_constants.h" |
| 33 #include "components/policy/core/common/policy_map.h" | 32 #include "components/policy/core/common/policy_map.h" |
| 34 #include "components/policy/core/common/policy_namespace.h" | 33 #include "components/policy/core/common/policy_namespace.h" |
| 34 #include "components/policy/core/common/policy_service.h" |
| 35 #include "content/public/browser/browser_thread.h" | 35 #include "content/public/browser/browser_thread.h" |
| 36 #include "content/public/browser/notification_service.h" | 36 #include "content/public/browser/notification_service.h" |
| 37 #include "grit/generated_resources.h" | 37 #include "grit/generated_resources.h" |
| 38 #include "grit/theme_resources.h" | 38 #include "grit/theme_resources.h" |
| 39 #include "policy/policy_constants.h" | 39 #include "policy/policy_constants.h" |
| 40 #include "third_party/skia/include/core/SkBitmap.h" | 40 #include "third_party/skia/include/core/SkBitmap.h" |
| 41 #include "ui/base/l10n/l10n_util.h" | 41 #include "ui/base/l10n/l10n_util.h" |
| 42 #include "ui/base/resource/resource_bundle.h" | 42 #include "ui/base/resource/resource_bundle.h" |
| 43 #include "ui/base/webui/web_ui_util.h" | 43 #include "ui/base/webui/web_ui_util.h" |
| 44 #include "ui/gfx/image/image_skia.h" | 44 #include "ui/gfx/image/image_skia.h" |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 policy_registrar_.reset(); | 388 policy_registrar_.reset(); |
| 389 sync_timer_.reset(); | 389 sync_timer_.reset(); |
| 390 UserImageSyncObserver* sync_observer = | 390 UserImageSyncObserver* sync_observer = |
| 391 UserManager::Get()->GetUserImageManager()->GetSyncObserver(); | 391 UserManager::Get()->GetUserImageManager()->GetSyncObserver(); |
| 392 if (sync_observer) | 392 if (sync_observer) |
| 393 sync_observer->RemoveObserver(this); | 393 sync_observer->RemoveObserver(this); |
| 394 get_screen_observer()->OnExit(ScreenObserver::USER_IMAGE_SELECTED); | 394 get_screen_observer()->OnExit(ScreenObserver::USER_IMAGE_SELECTED); |
| 395 } | 395 } |
| 396 | 396 |
| 397 } // namespace chromeos | 397 } // namespace chromeos |
| OLD | NEW |