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

Unified Diff: appengine/findit/crash/findit.py

Issue 2457153002: replacing the NullCulprit class by None (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « appengine/findit/crash/culprit.py ('k') | appengine/findit/crash/test/findit_for_chromecrash_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/crash/findit.py
diff --git a/appengine/findit/crash/findit.py b/appengine/findit/crash/findit.py
index e15ab25c08b2cc56128b468fbbb432acfcd925f6..9624ba03a9f8232f4afe7f53eb1235dd7fe0c6dc 100644
--- a/appengine/findit/crash/findit.py
+++ b/appengine/findit/crash/findit.py
@@ -12,7 +12,6 @@ from common import chrome_dependency_fetcher
from common import constants
from common import time_util
from crash.crash_report import CrashReport
-from crash.culprit import NullCulprit
from model import analysis_status
from model.crash.crash_config import CrashConfig
@@ -277,9 +276,7 @@ class Findit(object):
"""Given a CrashAnalysis ndb.Model, return a Culprit."""
stacktrace = self.ParseStacktrace(model)
if stacktrace is None:
- # TODO(http://crbug.com/659359): refactor things so we don't need
- # the NullCulprit class.
- return NullCulprit()
+ return None
Sharu Jiang 2016/10/28 20:34:12 It's ok to return None here, but you need to updat
wrengr 2016/10/28 21:11:19 Indeed, the goal of this CL is to allow returning
Sharu Jiang 2016/10/28 23:40:58 Yes, the algorithm is a better name, however when
return self._azalea.FindCulprit(CrashReport(
crashed_version = model.crashed_version,
« no previous file with comments | « appengine/findit/crash/culprit.py ('k') | appengine/findit/crash/test/findit_for_chromecrash_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698