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

Unified Diff: chrome/test/data/native_messaging/native_hosts/empty_app.py

Issue 12285015: Require manifests for native messaging hosts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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: chrome/test/data/native_messaging/native_hosts/empty_app.py
diff --git a/chrome/test/data/native_messaging/native_hosts/empty_app.py b/chrome/test/data/native_messaging/native_hosts/empty_app.py
deleted file mode 100755
index abdd261674926548839da037c62c644fe796de84..0000000000000000000000000000000000000000
--- a/chrome/test/data/native_messaging/native_hosts/empty_app.py
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-# This native client will read full messages, but do nothing with them and
-# send no responses.
-
-import sys
-import struct
-
-while 1:
- # Read the message type (first 4 bytes).
- typeBytes = sys.stdin.read(4)
-
- if len(typeBytes) == 0:
- break
-
- # Read the message length (4 bytes).
- textLength = struct.unpack('i', sys.stdin.read(4))[0]
-
- # Read the text (JSON object) of the message.
- text = sys.stdin.read(textLength)

Powered by Google App Engine
This is Rietveld 408576698