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

Unified Diff: chrome/test/automation/javascript_message_utils.h

Issue 7649006: more changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix another typo Created 9 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/test/automation/javascript_message_utils.h
diff --git a/chrome/test/automation/javascript_message_utils.h b/chrome/test/automation/javascript_message_utils.h
index 64c93d7c5f408a2921bedfd8967a0e5b87353557..a9ac8542b6e19661658569d5585dffcf2c0d10af 100644
--- a/chrome/test/automation/javascript_message_utils.h
+++ b/chrome/test/automation/javascript_message_utils.h
@@ -25,7 +25,7 @@ struct ValueConversionTraits {
template <>
struct ValueConversionTraits<int> {
static Value* CreateValue(int t) {
- return Value::CreateIntegerValue(t);
+ return base::NumberValue::New(t);
}
static bool SetFromValue(Value* value, int* t) {
return value->GetAsInteger(t);
@@ -35,7 +35,7 @@ struct ValueConversionTraits<int> {
template <>
struct ValueConversionTraits<bool> {
static Value* CreateValue(bool t) {
- return Value::CreateBooleanValue(t);
+ return base::BooleanValue::New(t);
}
static bool SetFromValue(Value* value, bool* t) {
return value->GetAsBoolean(t);
@@ -45,7 +45,7 @@ struct ValueConversionTraits<bool> {
template <>
struct ValueConversionTraits<std::string> {
static Value* CreateValue(const std::string& t) {
- return Value::CreateStringValue(t);
+ return base::StringValue::New(t);
}
static bool SetFromValue(Value* value, std::string* t) {
return value->GetAsString(t);
« no previous file with comments | « chrome/test/automation/automation_proxy_uitest.cc ('k') | chrome/test/live_sync/multiple_client_preferences_sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698