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

Unified Diff: tools/telemetry/telemetry/core/extension_to_load.py

Issue 12294002: Revert 182991 (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: tools/telemetry/telemetry/core/extension_to_load.py
===================================================================
--- tools/telemetry/telemetry/core/extension_to_load.py (revision 182999)
+++ tools/telemetry/telemetry/core/extension_to_load.py (working copy)
@@ -1,32 +0,0 @@
-# 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.core.chrome import crx_id
-
-class ExtensionPathNonExistentException(Exception):
- pass
-
-class ExtensionToLoad(object):
- def __init__(self, path, is_component=False):
- if not os.path.isdir(path):
- raise ExtensionPathNonExistentException(
- 'Extension path not a directory %s' % path)
- self._path = path
- self._is_component = is_component
-
- @property
- def extension_id(self):
- """Unique extension id of this extension."""
- return crx_id.GetCRXAppID(os.path.abspath(self._path))
-
- @property
- def path(self):
- """Path to extension directory."""
- return self._path
-
- @property
- def is_component(self):
- """Whether this extension should be loaded as a component extension."""
- return self._is_component
« no previous file with comments | « tools/telemetry/telemetry/core/extension_page.py ('k') | tools/telemetry/telemetry/core/extension_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698