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

Unified Diff: content/browser/manifest/manifest_manager_host.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/browser/manifest/manifest_manager_host.cc
diff --git a/content/browser/manifest/manifest_manager_host.cc b/content/browser/manifest/manifest_manager_host.cc
index d32a8c349cba212852e94b04903216ad95696d2a..e60cb0a4219766b0a38016aefbbe7f2a9f32b133 100644
--- a/content/browser/manifest/manifest_manager_host.cc
+++ b/content/browser/manifest/manifest_manager_host.cc
@@ -127,6 +127,13 @@ void ManifestManagerHost::OnRequestManifestResponse(
manifest.gcm_sender_id.string().substr(
0, Manifest::kMaxIPCStringLength),
manifest.gcm_sender_id.is_null());
+ for (size_t i = 0; i < 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
+ manifest.chrome_related_applications[i].id= base::NullableString16(
+ manifest.chrome_related_applications[i].id.string().substr(
+ 0,
+ Manifest::kMaxIPCStringLength),
+ manifest.chrome_related_applications[i].id.is_null());
+ }
callback->Run(manifest);
callbacks->Remove(request_id);
« no previous file with comments | « no previous file | content/common/manifest_manager_messages.h » ('j') | content/common/manifest_manager_messages.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698