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

Unified Diff: Source/bindings/modules/v8/custom/V8SQLTransactionSyncCustom.cpp

Issue 331373002: Split bindings/v8/custom into core and modules. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 6 years, 6 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: Source/bindings/modules/v8/custom/V8SQLTransactionSyncCustom.cpp
diff --git a/Source/bindings/v8/custom/V8SQLTransactionSyncCustom.cpp b/Source/bindings/modules/v8/custom/V8SQLTransactionSyncCustom.cpp
similarity index 97%
rename from Source/bindings/v8/custom/V8SQLTransactionSyncCustom.cpp
rename to Source/bindings/modules/v8/custom/V8SQLTransactionSyncCustom.cpp
index 9b24721fa4117cc65ebda488b90b1a71e9b8f6c6..658f20e4c3c1aa468b277f05a172a87ebf874826 100644
--- a/Source/bindings/v8/custom/V8SQLTransactionSyncCustom.cpp
+++ b/Source/bindings/modules/v8/custom/V8SQLTransactionSyncCustom.cpp
@@ -35,9 +35,9 @@
#include "bindings/v8/ExceptionState.h"
#include "bindings/v8/V8Binding.h"
#include "core/dom/ExceptionCode.h"
-#include "modules/webdatabase/sqlite/SQLValue.h"
#include "modules/webdatabase/DatabaseSync.h"
#include "modules/webdatabase/SQLResultSet.h"
+#include "modules/webdatabase/sqlite/SQLValue.h"
#include "wtf/Vector.h"
using namespace WTF;
@@ -77,9 +77,9 @@ void V8SQLTransactionSync::executeSqlMethodCustom(const v8::FunctionCallbackInfo
v8::Handle<v8::Integer> key = v8::Integer::New(info.GetIsolate(), i);
TONATIVE_VOID(v8::Local<v8::Value>, value, sqlArgsObject->Get(key));
- if (value.IsEmpty() || value->IsNull())
+ if (value.IsEmpty() || value->IsNull()) {
sqlValues.append(SQLValue());
- else if (value->IsNumber()) {
+ } else if (value->IsNumber()) {
TONATIVE_VOID(double, sqlValue, value->NumberValue());
sqlValues.append(SQLValue(sqlValue));
} else {

Powered by Google App Engine
This is Rietveld 408576698