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

Side by Side Diff: mojo/public/python/mojo_application/application_delegate.py

Issue 988653002: Fix unused variable pylint warning. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 | « examples/python/__mojo__.py ('k') | mojo/public/python/mojo_application/application_impl.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Interface for the delegate of ApplicationImpl.""" 5 """Interface for the delegate of ApplicationImpl."""
6 6
7 import mojo_application.application_impl 7 import mojo_application.application_impl
8 import mojo_application.service_provider_impl 8 import mojo_application.service_provider_impl
9 import shell_mojom 9 import shell_mojom
10 10
11 import mojo_system 11 import mojo_system
12 12
13 # pylint: disable=unused-argument 13 # pylint: disable=unused-argument
14 class ApplicationDelegate: 14 class ApplicationDelegate:
15 def Initialize(self, shell, application): 15 def Initialize(self, shell, application):
16 """ 16 """
17 Called from ApplicationImpl's Initialize() method. 17 Called from ApplicationImpl's Initialize() method.
18 """ 18 """
19 pass 19 pass
20 20
21 def OnAcceptConnection(self, service_provider, requestor_url, 21 def OnAcceptConnection(self,
22 requestor_url,
23 resolved_url,
24 service_provider,
22 exposed_services): 25 exposed_services):
23 """ 26 """
24 Called from ApplicationImpl's OnAcceptConnection() method. Returns a bool 27 Called from ApplicationImpl's OnAcceptConnection() method. Returns a bool
25 indicating whether this connection should be accepted. 28 indicating whether this connection should be accepted.
26 """ 29 """
27 return True 30 return False
OLDNEW
« no previous file with comments | « examples/python/__mojo__.py ('k') | mojo/public/python/mojo_application/application_impl.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698