Index: net/tools/testserver/testserver.py |
diff --git a/net/tools/testserver/testserver.py b/net/tools/testserver/testserver.py |
index c079b4c514d72991832f582e7aa9a8dd761bbb15..5d27dbe82be98aedd60b99db5aacddc8b42bb669 100755 |
--- a/net/tools/testserver/testserver.py |
+++ b/net/tools/testserver/testserver.py |
@@ -1407,7 +1407,8 @@ class SyncPageHandler(BasePageHandler): |
get_handlers = [self.ChromiumSyncMigrationOpHandler, |
self.ChromiumSyncTimeHandler, |
self.ChromiumSyncBirthdayErrorOpHandler, |
- self.ChromiumSyncTransientErrorOpHandler] |
+ self.ChromiumSyncTransientErrorOpHandler, |
+ self.ChromiumSyncSyncTabsOpHandler] |
post_handlers = [self.ChromiumSyncCommandHandler, |
self.ChromiumSyncTimeHandler] |
@@ -1495,6 +1496,18 @@ class SyncPageHandler(BasePageHandler): |
self.wfile.write(raw_reply) |
return True; |
+ def ChromiumSyncSyncTabsOpHandler(self): |
+ test_name = "/chromiumsync/synctabs" |
+ if not self._ShouldHandleRequest(test_name): |
+ return False |
+ result, raw_reply = self.server._sync_handler.HandleSetSyncTabs() |
+ self.send_response(result) |
+ self.send_header('Content-Type', 'text/html') |
+ self.send_header('Content-Length', len(raw_reply)) |
+ self.end_headers() |
+ self.wfile.write(raw_reply) |
+ return True; |
+ |
def MakeDataDir(): |
if options.data_dir: |