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

Unified Diff: content/renderer/manifest/manifest_manager.cc

Issue 919293002: Add related_applications field to manifest parser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do IPC stuff Created 5 years, 10 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/renderer/manifest/manifest_manager.cc
diff --git a/content/renderer/manifest/manifest_manager.cc b/content/renderer/manifest/manifest_manager.cc
index a5ee94cf6b59c4d7829d5373c93b434b7f677dcc..f4a613e9066c5533ef1f2073fbe34b1a3eedc59e 100644
--- a/content/renderer/manifest/manifest_manager.cc
+++ b/content/renderer/manifest/manifest_manager.cc
@@ -71,6 +71,12 @@ void ManifestManager::OnRequestManifestComplete(
ipc_manifest.gcm_sender_id.string().substr(
0, Manifest::kMaxIPCStringLength),
ipc_manifest.gcm_sender_id.is_null());
+ for (size_t i = 0; i < ipc_manifest.chrome_related_applications.size(); ++i) {
mlamouri (slow - plz ping) 2015/02/17 12:43:20 nit: maybe that would be easier to read: for (Ch
+ ipc_manifest.chrome_related_applications[i].id = base::NullableString16(
+ ipc_manifest.chrome_related_applications[i].id.string().substr(
+ 0, Manifest::kMaxIPCStringLength),
+ ipc_manifest.chrome_related_applications[i].id.is_null());
+ }
Send(new ManifestManagerHostMsg_RequestManifestResponse(
routing_id(), request_id, ipc_manifest));

Powered by Google App Engine
This is Rietveld 408576698