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

Unified Diff: content/common/presentation/presentation_struct_traits.cc

Issue 2737413003: [Presentation API] Remove references to presentation sessions. (Closed)
Patch Set: Update PresentationServiceDelegateImpl unittest 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 side-by-side diff with in-line comments
Download patch
Index: content/common/presentation/presentation_struct_traits.cc
diff --git a/content/common/presentation/presentation_struct_traits.cc b/content/common/presentation/presentation_struct_traits.cc
index d6e2bbfd92747840d85978b0b5cb4195c0b48bd3..13b5b388b7e5f6aa5492246b33e65beca39a43cf 100644
--- a/content/common/presentation/presentation_struct_traits.cc
+++ b/content/common/presentation/presentation_struct_traits.cc
@@ -8,10 +8,10 @@
namespace mojo {
-bool StructTraits<blink::mojom::PresentationSessionInfoDataView,
- content::PresentationSessionInfo>::
- Read(blink::mojom::PresentationSessionInfoDataView data,
- content::PresentationSessionInfo* out) {
+bool StructTraits<blink::mojom::PresentationInfoDataView,
+ content::PresentationInfo>::
+ Read(blink::mojom::PresentationInfoDataView data,
+ content::PresentationInfo* out) {
if (!data.ReadUrl(&(out->presentation_url)) ||
!data.ReadId(&(out->presentation_id))) {
return false;
@@ -19,8 +19,7 @@ bool StructTraits<blink::mojom::PresentationSessionInfoDataView,
if (out->presentation_id.empty() ||
!base::IsStringASCII(out->presentation_id) ||
- out->presentation_id.length() >
- content::PresentationSessionInfo::kMaxIdLength) {
+ out->presentation_id.length() > content::PresentationInfo::kMaxIdLength) {
return false;
}
return true;
« no previous file with comments | « content/common/presentation/presentation_struct_traits.h ('k') | content/public/browser/presentation_service_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698