Index: chrome/test/chromedriver/session_commands.cc |
diff --git a/chrome/test/chromedriver/session_commands.cc b/chrome/test/chromedriver/session_commands.cc |
index a80aa46baeb0f6f3be972bdec16fc25b28bb8800..a503bf9bc3732b4007435c617bea18cb2b342f82 100644 |
--- a/chrome/test/chromedriver/session_commands.cc |
+++ b/chrome/test/chromedriver/session_commands.cc |
@@ -607,3 +607,22 @@ Status ExecuteUploadFile( |
value->reset(new base::StringValue(upload.value())); |
return Status(kOk); |
} |
+ |
+Status ExecuteIsAutoReporting( |
+ Session* session, |
+ const base::DictionaryValue& params, |
+ scoped_ptr<base::Value>* value) { |
+ value->reset(new base::FundamentalValue(session->auto_reporting_enabled)); |
+ return Status(kOk); |
+} |
+ |
+Status ExecuteSetAutoReporting( |
+ Session* session, |
+ const base::DictionaryValue& params, |
+ scoped_ptr<base::Value>* value) { |
+ bool enabled; |
+ if (!params.GetBoolean("enabled", &enabled)) |
+ return Status(kUnknownError, "missing parameter 'enabled'"); |
+ session->auto_reporting_enabled = enabled; |
+ return Status(kOk); |
+} |