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

Side by Side Diff: third_party/WebKit/Source/bindings/modules/v8/custom/V8CustomSQLStatementErrorCallback.cpp

Issue 2387073002: reflow comments in Source/bindings/modules/v8 (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (c) 2009, 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 v8::Local<v8::Value> errorHandle = 54 v8::Local<v8::Value> errorHandle =
55 toV8(error, m_scriptState->context()->Global(), isolate); 55 toV8(error, m_scriptState->context()->Global(), isolate);
56 ASSERT(transactionHandle->IsObject()); 56 ASSERT(transactionHandle->IsObject());
57 57
58 v8::Local<v8::Value> argv[] = {transactionHandle, errorHandle}; 58 v8::Local<v8::Value> argv[] = {transactionHandle, errorHandle};
59 59
60 v8::TryCatch exceptionCatcher(isolate); 60 v8::TryCatch exceptionCatcher(isolate);
61 exceptionCatcher.SetVerbose(true); 61 exceptionCatcher.SetVerbose(true);
62 62
63 v8::Local<v8::Value> result; 63 v8::Local<v8::Value> result;
64 // FIXME: This comment doesn't make much sense given what the code is actually doing. 64 // FIXME: This comment doesn't make much sense given what the code is actually
65 // doing.
65 // 66 //
66 // Step 6: If the error callback returns false, then move on to the next 67 // Step 6: If the error callback returns false, then move on to the next
67 // statement, if any, or onto the next overall step otherwise. Otherwise, 68 // statement, if any, or onto the next overall step otherwise. Otherwise,
68 // the error callback did not return false, or there was no error callback. 69 // the error callback did not return false, or there was no error callback.
69 // Jump to the last step in the overall steps. 70 // Jump to the last step in the overall steps.
70 if (!V8ScriptRunner::callFunction(m_callback.newLocal(isolate), 71 if (!V8ScriptRunner::callFunction(m_callback.newLocal(isolate),
71 getExecutionContext(), 72 getExecutionContext(),
72 m_scriptState->context()->Global(), 73 m_scriptState->context()->Global(),
73 WTF_ARRAY_LENGTH(argv), argv, isolate) 74 WTF_ARRAY_LENGTH(argv), argv, isolate)
74 .ToLocal(&result)) 75 .ToLocal(&result))
75 return true; 76 return true;
76 bool value; 77 bool value;
77 if (!result->BooleanValue(isolate->GetCurrentContext()).To(&value)) 78 if (!result->BooleanValue(isolate->GetCurrentContext()).To(&value))
78 return true; 79 return true;
79 return value; 80 return value;
80 } 81 }
81 82
82 } // namespace blink 83 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698