| 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/media/router/presentation_service_delegate_impl.h" | 5 #include "chrome/browser/media/router/presentation_service_delegate_impl.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <unordered_map> | 8 #include <unordered_map> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1049 } | 1049 } |
| 1050 | 1050 |
| 1051 #if !defined(OS_ANDROID) | 1051 #if !defined(OS_ANDROID) |
| 1052 bool PresentationServiceDelegateImpl::ShouldCancelAutoJoinForOrigin( | 1052 bool PresentationServiceDelegateImpl::ShouldCancelAutoJoinForOrigin( |
| 1053 const url::Origin& origin) const { | 1053 const url::Origin& origin) const { |
| 1054 const base::ListValue* origins = | 1054 const base::ListValue* origins = |
| 1055 Profile::FromBrowserContext(web_contents_->GetBrowserContext()) | 1055 Profile::FromBrowserContext(web_contents_->GetBrowserContext()) |
| 1056 ->GetPrefs() | 1056 ->GetPrefs() |
| 1057 ->GetList(prefs::kMediaRouterTabMirroringSources); | 1057 ->GetList(prefs::kMediaRouterTabMirroringSources); |
| 1058 return origins && | 1058 return origins && |
| 1059 origins->Find(base::StringValue(origin.Serialize())) != origins->end(); | 1059 origins->Find(base::Value(origin.Serialize())) != origins->end(); |
| 1060 } | 1060 } |
| 1061 #endif // !defined(OS_ANDROID) | 1061 #endif // !defined(OS_ANDROID) |
| 1062 | 1062 |
| 1063 } // namespace media_router | 1063 } // namespace media_router |
| OLD | NEW |