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

Unified Diff: third_party/WebKit/Source/modules/permissions/Permissions.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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/modules/permissions/Permissions.cpp
diff --git a/third_party/WebKit/Source/modules/permissions/Permissions.cpp b/third_party/WebKit/Source/modules/permissions/Permissions.cpp
index 6f65e5b2db062f486a7d11fd3a8a70564294e23e..c44e64ef2092ff1af749381f5c9b84381bff250f 100644
--- a/third_party/WebKit/Source/modules/permissions/Permissions.cpp
+++ b/third_party/WebKit/Source/modules/permissions/Permissions.cpp
@@ -145,9 +145,10 @@ ScriptPromise Permissions::request(ScriptState* scriptState,
PermissionService* service = getService(scriptState->getExecutionContext());
if (!service)
return ScriptPromise::rejectWithDOMException(
- scriptState, DOMException::create(InvalidStateError,
- "In its current state, the global "
- "scope can't request permissions."));
+ scriptState,
+ DOMException::create(InvalidStateError,
+ "In its current state, the global "
+ "scope can't request permissions."));
ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState);
ScriptPromise promise = resolver->promise();
@@ -178,9 +179,10 @@ ScriptPromise Permissions::revoke(ScriptState* scriptState,
PermissionService* service = getService(scriptState->getExecutionContext());
if (!service)
return ScriptPromise::rejectWithDOMException(
- scriptState, DOMException::create(InvalidStateError,
- "In its current state, the global "
- "scope can't revoke permissions."));
+ scriptState,
+ DOMException::create(InvalidStateError,
+ "In its current state, the global "
+ "scope can't revoke permissions."));
ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState);
ScriptPromise promise = resolver->promise();
@@ -232,9 +234,10 @@ ScriptPromise Permissions::requestAll(
PermissionService* service = getService(scriptState->getExecutionContext());
if (!service)
return ScriptPromise::rejectWithDOMException(
- scriptState, DOMException::create(InvalidStateError,
- "In its current state, the global "
- "scope can't request permissions."));
+ scriptState,
+ DOMException::create(InvalidStateError,
+ "In its current state, the global "
+ "scope can't request permissions."));
ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState);
ScriptPromise promise = resolver->promise();
@@ -257,8 +260,9 @@ ScriptPromise Permissions::requestAll(
}
PermissionService* Permissions::getService(ExecutionContext* executionContext) {
- if (!m_service && connectToPermissionService(executionContext,
- mojo::MakeRequest(&m_service)))
+ if (!m_service &&
+ connectToPermissionService(executionContext,
+ mojo::MakeRequest(&m_service)))
m_service.set_connection_error_handler(convertToBaseCallback(WTF::bind(
&Permissions::serviceConnectionError, wrapWeakPersistent(this))));
return m_service.get();

Powered by Google App Engine
This is Rietveld 408576698