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

Unified Diff: ppapi/cpp/private/pdf.cc

Issue 2299943002: Record the PDF and top level URL when the PDF plugin crashes. (Closed)
Patch Set: Created 4 years, 3 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: ppapi/cpp/private/pdf.cc
diff --git a/ppapi/cpp/private/pdf.cc b/ppapi/cpp/private/pdf.cc
index d314d47b3ef853651862d76549d91f1c88ff799c..5659b58b087492b76a2d71f40a6dec17f598196c 100644
--- a/ppapi/cpp/private/pdf.cc
+++ b/ppapi/cpp/private/pdf.cc
@@ -183,4 +183,14 @@ void PDF::SetAccessibilityPageInfo(
}
}
+// static
+void PDF::SetCrashData(const InstanceHandle& instance,
+ const char* pdf_url,
+ const char* embedder_url) {
raymes 2016/09/05 04:11:47 nit: top_level_url
Lei Zhang 2016/09/07 00:12:39 Done.
+ if (has_interface<PPB_PDF>()) {
+ get_interface<PPB_PDF>()->SetCrashData(instance.pp_instance(), pdf_url,
+ embedder_url);
+ }
+}
+
} // namespace pp

Powered by Google App Engine
This is Rietveld 408576698