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

Side by Side Diff: tools/findit/blame.py

Issue 465403004: [Findit] Support sending cookies for http requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 4 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
« no previous file with comments | « no previous file | tools/findit/cacert.pem » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2014 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 from threading import Lock, Thread 5 from threading import Lock, Thread
6 6
7 import utils 7 from common import utils
8 8
9 9
10 class Blame(object): 10 class Blame(object):
11 """Represents a blame object. 11 """Represents a blame object.
12 12
13 The object contains blame information for one line of stack, and this 13 The object contains blame information for one line of stack, and this
14 information is shown when there are no CLs that change the crashing files. 14 information is shown when there are no CLs that change the crashing files.
15 Attributes: 15 Attributes:
16 line_content: The content of the line to find the blame for. 16 line_content: The content of the line to find the blame for.
17 component_name: The name of the component for this line. 17 component_name: The name of the component for this line.
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 if blame.range_start and blame.range_end: 152 if blame.range_start and blame.range_end:
153 153
154 # Discards results that are after the end of regression. 154 # Discards results that are after the end of regression.
155 if not utils.IsGitHash(blame.revision) and ( 155 if not utils.IsGitHash(blame.revision) and (
156 int(blame.range_end) <= int(blame.revision)): 156 int(blame.range_end) <= int(blame.revision)):
157 continue 157 continue
158 158
159 filtered_blame_list.append(blame) 159 filtered_blame_list.append(blame)
160 160
161 self.blame_list = filtered_blame_list 161 self.blame_list = filtered_blame_list
OLDNEW
« no previous file with comments | « no previous file | tools/findit/cacert.pem » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698