| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/ash/cast_config_client_media_router.h" | 5 #include "chrome/browser/ui/ash/cast_config_client_media_router.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ptr_util.h" |
| 12 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
| 14 #include "chrome/browser/chrome_notification_types.h" | 15 #include "chrome/browser/chrome_notification_types.h" |
| 15 #include "chrome/browser/media/router/media_router.h" | 16 #include "chrome/browser/media/router/media_router.h" |
| 16 #include "chrome/browser/media/router/media_router_factory.h" | 17 #include "chrome/browser/media/router/media_router_factory.h" |
| 17 #include "chrome/browser/media/router/media_router_feature.h" | 18 #include "chrome/browser/media/router/media_router_feature.h" |
| 18 #include "chrome/browser/media/router/media_routes_observer.h" | 19 #include "chrome/browser/media/router/media_routes_observer.h" |
| 19 #include "chrome/browser/media/router/media_sinks_observer.h" | 20 #include "chrome/browser/media/router/media_sinks_observer.h" |
| 20 #include "chrome/browser/media/router/media_source_helper.h" | 21 #include "chrome/browser/media/router/media_source_helper.h" |
| 21 #include "chrome/browser/profiles/profile_manager.h" | 22 #include "chrome/browser/profiles/profile_manager.h" |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 switch (type) { | 242 switch (type) { |
| 242 case chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED: | 243 case chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED: |
| 243 // The active profile has changed, which means that the media router has | 244 // The active profile has changed, which means that the media router has |
| 244 // as well. Reset the device cache to ensure we are using up-to-date | 245 // as well. Reset the device cache to ensure we are using up-to-date |
| 245 // object instances. | 246 // object instances. |
| 246 devices_.reset(); | 247 devices_.reset(); |
| 247 RequestDeviceRefresh(); | 248 RequestDeviceRefresh(); |
| 248 break; | 249 break; |
| 249 } | 250 } |
| 250 } | 251 } |
| OLD | NEW |