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

Side by Side Diff: tools/telemetry/telemetry/extension_to_load.py

Issue 11882033: Telemetry support for extensions. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: copyright 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4 import os
5
6 from telemetry import crx_id
7
8 class ExtensionToLoad(object):
9 def __init__(self, path):
10 if not os.path.isdir(path):
11 raise Exception('Extension path not a directory %s' % path)
12 self.path = path
13
14 def extension_id(self):
15 return crx_id.GetCRXAppID(os.path.abspath(self.path))
OLDNEW
« no previous file with comments | « tools/telemetry/telemetry/extension_page.py ('k') | tools/telemetry/telemetry/extension_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698