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

Unified Diff: content/renderer/pepper/pepper_url_request_unittest.cc

Issue 451923002: Add a X-Requested-With header to URL requests for PPAPI Flash (only). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comment about -1. Created 6 years, 4 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
« no previous file with comments | « content/renderer/pepper/pepper_plugin_registry.cc ('k') | content/renderer/pepper/plugin_module.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_url_request_unittest.cc
diff --git a/content/renderer/pepper/pepper_url_request_unittest.cc b/content/renderer/pepper/pepper_url_request_unittest.cc
index 44936c287bee968b84dd60432b6a5f3cca373806..b5de4b0afc49e34dd68eb3f39bd3d0353456c62f 100644
--- a/content/renderer/pepper/pepper_url_request_unittest.cc
+++ b/content/renderer/pepper/pepper_url_request_unittest.cc
@@ -53,7 +53,9 @@ namespace content {
class URLRequestInfoTest : public RenderViewTest {
public:
- URLRequestInfoTest() : pp_instance_(1234) {}
+ // Note: using -1 as the instance value allows code in
+ // url_request_info_util.cc to detect that this is a test instance.
+ URLRequestInfoTest() : pp_instance_(-1) {}
virtual void SetUp() OVERRIDE {
RenderViewTest::SetUp();
« no previous file with comments | « content/renderer/pepper/pepper_plugin_registry.cc ('k') | content/renderer/pepper/plugin_module.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698