Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: chrome/browser/media/router/presentation_service_delegate_impl.cc

Issue 2664753002: Remove base::StringValue (Closed)
Patch Set: Rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698