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

Unified Diff: chrome/test/ppapi/ppapi_test.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 | « chrome/test/ppapi/ppapi_browsertest.cc ('k') | content/child/request_extra_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/ppapi/ppapi_test.cc
diff --git a/chrome/test/ppapi/ppapi_test.cc b/chrome/test/ppapi/ppapi_test.cc
index 1e35de14d55c4c848e6ce817289107f573ed292c..4d303fa4229ca870b5d64ab0e21b01594a2a6b51 100644
--- a/chrome/test/ppapi/ppapi_test.cc
+++ b/chrome/test/ppapi/ppapi_test.cc
@@ -285,20 +285,26 @@ PPAPITest::PPAPITest() : in_process_(true) {
void PPAPITest::SetUpCommandLine(base::CommandLine* command_line) {
PPAPITestBase::SetUpCommandLine(command_line);
- // Append the switch to register the pepper plugin.
- // library name = <out dir>/<test_name>.<library_extension>
- // MIME type = application/x-ppapi-<test_name>
base::FilePath plugin_dir;
EXPECT_TRUE(PathService::Get(base::DIR_MODULE, &plugin_dir));
base::FilePath plugin_lib = plugin_dir.Append(ppapi::GetTestLibraryName());
EXPECT_TRUE(base::PathExists(plugin_lib));
+
+ // Append the switch to register the pepper plugin.
+ // library path = <out dir>/<test_name>.<library_extension>
+ // library name = "PPAPI Tests"
+ // version = "1.2.3"
+ // MIME type = application/x-ppapi-<test_name>
base::FilePath::StringType pepper_plugin = plugin_lib.value();
+ pepper_plugin.append(FILE_PATH_LITERAL("#PPAPI Tests"));
+ pepper_plugin.append(FILE_PATH_LITERAL("#")); // No description.
+ pepper_plugin.append(FILE_PATH_LITERAL("#1.2.3"));
pepper_plugin.append(FILE_PATH_LITERAL(";application/x-ppapi-tests"));
command_line->AppendSwitchNative(switches::kRegisterPepperPlugins,
pepper_plugin);
- command_line->AppendSwitchASCII(switches::kAllowNaClSocketAPI, "127.0.0.1");
+ command_line->AppendSwitchASCII(switches::kAllowNaClSocketAPI, "127.0.0.1");
if (in_process_)
command_line->AppendSwitch(switches::kPpapiInProcess);
}
« no previous file with comments | « chrome/test/ppapi/ppapi_browsertest.cc ('k') | content/child/request_extra_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698