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

Unified Diff: chrome/browser/nacl_host/nacl_process_host.cc

Issue 10918021: Remove old flags from about:flags and add new ones instead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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
Index: chrome/browser/nacl_host/nacl_process_host.cc
===================================================================
--- chrome/browser/nacl_host/nacl_process_host.cc (revision 154320)
+++ chrome/browser/nacl_host/nacl_process_host.cc (working copy)
@@ -10,6 +10,7 @@
#include "base/bind.h"
#include "base/command_line.h"
#include "base/message_loop.h"
+#include "base/metrics/histogram.h"
#include "base/path_service.h"
#include "base/string_number_conversions.h"
#include "base/string_split.h"
@@ -213,6 +214,16 @@
// under us by autoupdate.
NaClBrowser::GetInstance()->EnsureIrtAvailable();
#endif
+ CommandLine* cmd = CommandLine::ForCurrentProcess();
+ UMA_HISTOGRAM_BOOLEAN(
+ "NaCl.nacl-gdb",
+ !cmd->GetSwitchValuePath(switches::kNaClGdb).empty());
+ UMA_HISTOGRAM_BOOLEAN(
+ "NaCl.nacl-gdb-script",
+ !cmd->GetSwitchValuePath(switches::kNaClGdbScript).empty());
+ UMA_HISTOGRAM_BOOLEAN(
+ "NaCl.enable-nacl-debug",
+ cmd->HasSwitch(switches::kEnableNaClDebug));
}
void NaClProcessHost::Launch(

Powered by Google App Engine
This is Rietveld 408576698