Index: chrome/test/webdriver/utility_functions.cc |
=================================================================== |
--- chrome/test/webdriver/utility_functions.cc (revision 63075) |
+++ chrome/test/webdriver/utility_functions.cc (working copy) |
@@ -21,9 +21,8 @@ |
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 @@ |
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; |
} |