Index: content/renderer/manifest/manifest_manager.cc |
diff --git a/content/renderer/manifest/manifest_manager.cc b/content/renderer/manifest/manifest_manager.cc |
index 9f889dfd0f7020f7831827ff9159036fe1f569b5..baa314157ec46fe174a52c57a3fa211554b563eb 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.related_applications.size(); ++i) { |
+ ipc_manifest.related_applications[i].id = base::NullableString16( |
+ ipc_manifest.related_applications[i].id.string().substr( |
+ 0, Manifest::kMaxIPCStringLength), |
+ ipc_manifest.related_applications[i].id.is_null()); |
+ } |
Avi (use Gerrit)
2015/04/15 20:36:34
ditto re for (auto x : y)
benwells
2015/04/16 01:30:46
Done.
|
Send(new ManifestManagerHostMsg_RequestManifestResponse( |
routing_id(), request_id, ipc_manifest)); |