| 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" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "chrome/browser/profiles/profile.h" | 29 #include "chrome/browser/profiles/profile.h" |
| 30 #include "chrome/common/url_constants.h" | 30 #include "chrome/common/url_constants.h" |
| 31 #include "components/policy/core/common/policy_map.h" | 31 #include "components/policy/core/common/policy_map.h" |
| 32 #include "components/policy/core/common/policy_namespace.h" | 32 #include "components/policy/core/common/policy_namespace.h" |
| 33 #include "components/policy/core/common/policy_service.h" | 33 #include "components/policy/core/common/policy_service.h" |
| 34 #include "components/user_manager/user.h" | 34 #include "components/user_manager/user.h" |
| 35 #include "components/user_manager/user_image/default_user_images.h" | 35 #include "components/user_manager/user_image/default_user_images.h" |
| 36 #include "components/user_manager/user_image/user_image.h" | 36 #include "components/user_manager/user_image/user_image.h" |
| 37 #include "content/public/browser/browser_thread.h" | 37 #include "content/public/browser/browser_thread.h" |
| 38 #include "content/public/browser/notification_service.h" | 38 #include "content/public/browser/notification_service.h" |
| 39 #include "grit/generated_resources.h" | |
| 40 #include "grit/theme_resources.h" | |
| 41 #include "policy/policy_constants.h" | 39 #include "policy/policy_constants.h" |
| 42 #include "third_party/skia/include/core/SkBitmap.h" | 40 #include "third_party/skia/include/core/SkBitmap.h" |
| 43 #include "ui/base/l10n/l10n_util.h" | |
| 44 #include "ui/base/resource/resource_bundle.h" | |
| 45 #include "ui/base/webui/web_ui_util.h" | 41 #include "ui/base/webui/web_ui_util.h" |
| 46 #include "ui/gfx/image/image_skia.h" | 42 #include "ui/gfx/image/image_skia.h" |
| 47 | 43 |
| 48 using content::BrowserThread; | 44 using content::BrowserThread; |
| 49 | 45 |
| 50 namespace chromeos { | 46 namespace chromeos { |
| 51 | 47 |
| 52 namespace { | 48 namespace { |
| 53 | 49 |
| 54 // Time histogram suffix for profile image download. | 50 // Time histogram suffix for profile image download. |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 | 379 |
| 384 void UserImageScreen::ExitScreen() { | 380 void UserImageScreen::ExitScreen() { |
| 385 policy_registrar_.reset(); | 381 policy_registrar_.reset(); |
| 386 sync_timer_.reset(); | 382 sync_timer_.reset(); |
| 387 if (UserImageSyncObserver* sync_observer = GetSyncObserver()) | 383 if (UserImageSyncObserver* sync_observer = GetSyncObserver()) |
| 388 sync_observer->RemoveObserver(this); | 384 sync_observer->RemoveObserver(this); |
| 389 get_screen_observer()->OnExit(ScreenObserver::USER_IMAGE_SELECTED); | 385 get_screen_observer()->OnExit(ScreenObserver::USER_IMAGE_SELECTED); |
| 390 } | 386 } |
| 391 | 387 |
| 392 } // namespace chromeos | 388 } // namespace chromeos |
| OLD | NEW |