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

Unified Diff: content/browser/devtools/protocol/system_info_handler.cc

Issue 2868783003: Add command_line to SystemInfo data structure. (Closed)
Patch Set: Fixed compile on Windows. Created 3 years, 7 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 | « no previous file | third_party/WebKit/Source/core/inspector/browser_protocol.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/devtools/protocol/system_info_handler.cc
diff --git a/content/browser/devtools/protocol/system_info_handler.cc b/content/browser/devtools/protocol/system_info_handler.cc
index f0abfc1a20d72b7170344dfe5b6dfcf9b09e0a2c..a5e1b7303f1710f6993af3a4059482b1dc858e67 100644
--- a/content/browser/devtools/protocol/system_info_handler.cc
+++ b/content/browser/devtools/protocol/system_info_handler.cc
@@ -11,6 +11,7 @@
#include "base/bind.h"
#include "base/command_line.h"
#include "base/memory/ptr_util.h"
+#include "base/strings/utf_string_conversions.h"
#include "content/browser/gpu/compositor_util.h"
#include "content/public/browser/gpu_data_manager.h"
#include "gpu/config/gpu_feature_type.h"
@@ -126,8 +127,16 @@ void SendGetInfoResponse(std::unique_ptr<GetInfoCallback> callback) {
.SetDriverBugWorkarounds(std::move(driver_bug_workarounds))
.Build();
+ base::CommandLine* command = base::CommandLine::ForCurrentProcess();
+#if defined(OS_WIN)
+ std::string command_string =
+ base::WideToUTF8(command->GetCommandLineString());
+#else
+ std::string command_string = command->GetCommandLineString();
+#endif
+
callback->sendSuccess(std::move(gpu), gpu_info.machine_model_name,
- gpu_info.machine_model_version);
+ gpu_info.machine_model_version, command_string);
}
} // namespace
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/inspector/browser_protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698