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

Unified Diff: cc/ipc/local_frame_id_struct_traits.h

Issue 2537343004: Add SurfaceReference class. (Closed)
Patch Set: Fixes. Created 4 years 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
« no previous file with comments | « cc/ipc/BUILD.gn ('k') | cc/ipc/struct_traits_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ipc/local_frame_id_struct_traits.h
diff --git a/cc/ipc/local_frame_id_struct_traits.h b/cc/ipc/local_frame_id_struct_traits.h
index 514bd4cbeaeb11dd7602dd77d60b2f5deddf41e9..4dd01d6fba44f52fcfdcc4bfe9d9608f397c9fce 100644
--- a/cc/ipc/local_frame_id_struct_traits.h
+++ b/cc/ipc/local_frame_id_struct_traits.h
@@ -24,12 +24,8 @@ struct StructTraits<cc::mojom::LocalFrameIdDataView, cc::LocalFrameId> {
static bool Read(cc::mojom::LocalFrameIdDataView data,
cc::LocalFrameId* out) {
- base::UnguessableToken nonce;
- if (!data.ReadNonce(&nonce))
- return false;
-
- *out = cc::LocalFrameId(data.local_id(), nonce);
- return true;
+ out->local_id_ = data.local_id();
+ return data.ReadNonce(&out->nonce_);
}
};
« no previous file with comments | « cc/ipc/BUILD.gn ('k') | cc/ipc/struct_traits_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698