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(); |