summaryrefslogtreecommitdiffstats
path: root/chrome/common/automation_id.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-18 20:29:27 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-18 20:29:27 +0000
commita371b4bd10e871e13efc4a2c53b3e26b8e8d9ef0 (patch)
treef551a98ccf6e9b91cebc5c35fc25b1dc13174413 /chrome/common/automation_id.cc
parent59e69e745ba3fa290ff3c50e65c3db03ee9dde6b (diff)
downloadchromium_src-a371b4bd10e871e13efc4a2c53b3e26b8e8d9ef0.zip
chromium_src-a371b4bd10e871e13efc4a2c53b3e26b8e8d9ef0.tar.gz
chromium_src-a371b4bd10e871e13efc4a2c53b3e26b8e8d9ef0.tar.bz2
Make chrome/common and chrome/renderer use base namespace for Value.
R=avi@chromium.org Review URL: https://codereview.chromium.org/16923013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207076 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/automation_id.cc')
-rw-r--r--chrome/common/automation_id.cc15
1 files changed, 6 insertions, 9 deletions
diff --git a/chrome/common/automation_id.cc b/chrome/common/automation_id.cc
index 342cfa2..b1d5c3a 100644
--- a/chrome/common/automation_id.cc
+++ b/chrome/common/automation_id.cc
@@ -7,13 +7,10 @@
#include "base/strings/stringprintf.h"
#include "base/values.h"
-using base::DictionaryValue;
-using base::Value;
-
// static
bool AutomationId::FromValue(
- Value* value, AutomationId* id, std::string* error) {
- DictionaryValue* dict;
+ base::Value* value, AutomationId* id, std::string* error) {
+ base::DictionaryValue* dict;
if (!value->GetAsDictionary(&dict)) {
*error = "automation ID must be a dictionary";
return false;
@@ -34,11 +31,11 @@ bool AutomationId::FromValue(
// static
bool AutomationId::FromValueInDictionary(
- DictionaryValue* dict,
+ base::DictionaryValue* dict,
const std::string& key,
AutomationId* id,
std::string* error) {
- Value* id_value;
+ base::Value* id_value;
if (!dict->Get(key, &id_value)) {
*error = base::StringPrintf("automation ID '%s' missing", key.c_str());
return false;
@@ -55,8 +52,8 @@ bool AutomationId::operator==(const AutomationId& id) const {
return type_ == id.type_ && id_ == id.id_;
}
-DictionaryValue* AutomationId::ToValue() const {
- DictionaryValue* dict = new DictionaryValue();
+base::DictionaryValue* AutomationId::ToValue() const {
+ base::DictionaryValue* dict = new base::DictionaryValue();
dict->SetInteger("type", type_);
dict->SetString("id", id_);
return dict;