| Index: tools/telemetry/telemetry/extension_to_load.py
|
| ===================================================================
|
| --- tools/telemetry/telemetry/extension_to_load.py (revision 0)
|
| +++ tools/telemetry/telemetry/extension_to_load.py (revision 0)
|
| @@ -0,0 +1,15 @@
|
| +# Copyright (c) 2013 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.
|
| +import os
|
| +
|
| +from telemetry import crx_id
|
| +
|
| +class ExtensionToLoad(object):
|
| + def __init__(self, path):
|
| + if not os.path.isdir(path):
|
| + raise Exception('Extension path not a directory %s' % path)
|
| + self.path = path
|
| +
|
| + def extension_id(self):
|
| + return crx_id.GetCRXAppID(os.path.abspath(self.path))
|
|
|
| Property changes on: tools/telemetry/telemetry/extension_to_load.py
|
| ___________________________________________________________________
|
| Added: svn:eol-style
|
| + LF
|
|
|
|
|