OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 | 4 |
5 import json | 5 import json |
6 import tarfile | 6 import tarfile |
7 from StringIO import StringIO | 7 from StringIO import StringIO |
8 | 8 |
9 from file_system import FileNotFoundError, ToUnicode | 9 from file_system import FileNotFoundError, ToUnicode |
10 from future import Future | 10 from future import Future |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 167 |
168 def Apply(self, paths, file_system, binary, version=None): | 168 def Apply(self, paths, file_system, binary, version=None): |
169 if version is None: | 169 if version is None: |
170 version = self.GetVersion() | 170 version = self.GetVersion() |
171 return Future(delegate=_AsyncFetchFuture(self._base_path, | 171 return Future(delegate=_AsyncFetchFuture(self._base_path, |
172 self._issue, | 172 self._issue, |
173 version, | 173 version, |
174 paths, | 174 paths, |
175 binary, | 175 binary, |
176 self._fetcher)) | 176 self._fetcher)) |
| 177 |
| 178 def GetIdentity(self): |
| 179 return self._issue |
OLD | NEW |