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

Unified Diff: net/tools/testserver/device_management.py

Issue 6523058: New policy protobuf protocol. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« no previous file with comments | « net/net.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/testserver/device_management.py
diff --git a/net/tools/testserver/device_management.py b/net/tools/testserver/device_management.py
index 00254c126ada0d3466c40e31120714d2d1c8f763..ccf1ac8a51ff68e798657c56cc6909811c377874 100644
--- a/net/tools/testserver/device_management.py
+++ b/net/tools/testserver/device_management.py
@@ -95,7 +95,7 @@ class RequestHandler(object):
unique.
"""
if not self._params:
- self._params = cgi.parse_qs(self._path[self._path.find('?')+1:])
+ self._params = cgi.parse_qs(self._path[self._path.find('?') + 1:])
param_list = self._params.get(name, [])
if len(param_list) == 1:
@@ -173,7 +173,6 @@ class RequestHandler(object):
response = dm.DeviceManagementResponse()
response.error = dm.DeviceManagementResponse.SUCCESS
response.register_response.device_management_token = dmtoken
- response.register_response.device_name = self.GetDeviceName()
self.DumpMessage('Response', response)
@@ -498,7 +497,7 @@ class TestServer(object):
dmtoken_chars = []
while len(dmtoken_chars) < 32:
dmtoken_chars.append(random.choice('0123456789abcdef'))
- dmtoken= ''.join(dmtoken_chars)
+ dmtoken = ''.join(dmtoken_chars)
self._registered_devices[dmtoken] = device_id
return dmtoken
« no previous file with comments | « net/net.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698