summaryrefslogtreecommitdiffstats
path: root/chrome/test/webdriver/utility_functions.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/webdriver/utility_functions.cc')
-rw-r--r--chrome/test/webdriver/utility_functions.cc13
1 files changed, 5 insertions, 8 deletions
diff --git a/chrome/test/webdriver/utility_functions.cc b/chrome/test/webdriver/utility_functions.cc
index 6744e67..54e5ae8 100644
--- a/chrome/test/webdriver/utility_functions.cc
+++ b/chrome/test/webdriver/utility_functions.cc
@@ -21,9 +21,8 @@ std::wstring build_atom(const wchar_t* const atom[], const size_t& size) {
const size_t len = size / sizeof(atom[0]);
std::wstring ret = L"";
for (size_t i = 0; i < len; ++i) {
- if (atom[i] != NULL) {
+ if (atom[i] != NULL)
ret.append(std::wstring(atom[i]));
- }
}
return ret;
}
@@ -65,19 +64,17 @@ bool ParseJSONDictionary(const std::string& json, DictionaryValue** dict,
Value* params =
base::JSONReader::ReadAndReturnError(json, true, &error_code, error);
if (error_code != 0) {
- LOG(INFO) << "Could not parse JSON object, " << *error << std::endl;
- if (params) {
+ VLOG(1) << "Could not parse JSON object, " << *error;
+ if (params)
delete params;
- }
return false;
}
if (!params || params->GetType() != Value::TYPE_DICTIONARY) {
*error = "Data passed in URL must be of type dictionary.";
- LOG(INFO) << "Invalid type to parse" << std::endl;
- if (params) {
+ VLOG(1) << "Invalid type to parse";
+ if (params)
delete params;
- }
return false;
}