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

Unified Diff: third_party/WebKit/Source/bindings/templates/utilities.cpp.tmpl

Issue 2446213002: [Bindings] [Reformat] Reformat template files (Closed)
Patch Set: Rebase (Split out Callbackfunctions) 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/templates/utilities.cpp.tmpl
diff --git a/third_party/WebKit/Source/bindings/templates/utilities.cpp.tmpl b/third_party/WebKit/Source/bindings/templates/utilities.cpp.tmpl
index c004248f829576d2ca8db4f0ac963d62c8a6401f..1e23d92f1a19fa983de3dc5e9cd27de365bf741c 100644
--- a/third_party/WebKit/Source/bindings/templates/utilities.cpp.tmpl
+++ b/third_party/WebKit/Source/bindings/templates/utilities.cpp.tmpl
@@ -25,7 +25,7 @@
{% endif %}
{% if item.check_expression %}
if ({{item.check_expression}})
- return{% if item.return_expression %} {{item.return_expression}}{% endif %};
+ return{% if item.return_expression %} {{item.return_expression}}{% endif %};
{% endif %}{# item.check_expression #}
{% endif %}{# item.error_message #}
{% endmacro %}
@@ -59,10 +59,10 @@ const char* {{enum_variable}}[] = {
ExecutionContext* executionContext = currentExecutionContext({{isolate}});
String errorMessage;
if (!{{member.origin_trial_enabled_function}}(executionContext, errorMessage)) {
- v8SetReturnValue(info, v8::Undefined(info.GetIsolate()));
- if (!errorMessage.isEmpty()) {
- executionContext->addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage));
- }
- return;
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate()));
+ if (!errorMessage.isEmpty()) {
+ executionContext->addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage));
+ }
+ return;
}
{% endmacro %}

Powered by Google App Engine
This is Rietveld 408576698