OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 import logging | 4 import logging |
5 import json | 5 import json |
6 import os | 6 import os |
7 | 7 |
8 from telemetry import facebook_credentials_backend | 8 from telemetry.core.chrome import facebook_credentials_backend |
9 from telemetry import google_credentials_backend | 9 from telemetry.core.chrome import google_credentials_backend |
10 from telemetry import options_for_unittests | 10 from telemetry.test import options_for_unittests |
11 | 11 |
12 class BrowserCredentials(object): | 12 class BrowserCredentials(object): |
13 def __init__(self, backends = None): | 13 def __init__(self, backends = None): |
14 self._credentials = {} | 14 self._credentials = {} |
15 self._credentials_path = None | 15 self._credentials_path = None |
16 self._extra_credentials = {} | 16 self._extra_credentials = {} |
17 | 17 |
18 if backends is None: | 18 if backends is None: |
19 backends = [ | 19 backends = [ |
20 facebook_credentials_backend.FacebookCredentialsBackend(), | 20 facebook_credentials_backend.FacebookCredentialsBackend(), |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 Credentials for %s were not found. %i pages will not be benchmarked. | 136 Credentials for %s were not found. %i pages will not be benchmarked. |
137 | 137 |
138 To fix this, either add svn-internal to your .gclient using | 138 To fix this, either add svn-internal to your .gclient using |
139 http://goto/read-src-internal, or add your own credentials to: | 139 http://goto/read-src-internal, or add your own credentials to: |
140 %s | 140 %s |
141 An example credentials file you can copy from is here: | 141 An example credentials file you can copy from is here: |
142 %s\n""" % (', '.join(missing_credentials), | 142 %s\n""" % (', '.join(missing_credentials), |
143 num_pages_missing_login, | 143 num_pages_missing_login, |
144 ' or '.join(files_to_tweak), | 144 ' or '.join(files_to_tweak), |
145 example_credentials_file)) | 145 example_credentials_file)) |
OLD | NEW |