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

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

Issue 2613153006: [Predator] Add TouchCrashedFileMetaFeature. (Closed)
Patch Set: Add comments. Created 3 years, 11 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
Index: appengine/findit/crash/crash_util.py
diff --git a/appengine/findit/crash/crash_util.py b/appengine/findit/crash/crash_util.py
index a17a4e503461d1352041401a2f587e16176fe599..56947a5436ef37a07fea6e37489b955bd51e4354 100644
--- a/appengine/findit/crash/crash_util.py
+++ b/appengine/findit/crash/crash_util.py
@@ -23,6 +23,12 @@ def IsSameFilePath(path_1, path_2):
Returns:
Boolean, True if it they are thought to be a same path, False otherwise.
"""
+ if not path_1 and not path_2:
+ return True
+
+ if not path_1 or not path_2:
+ return False
+
# TODO(katesonia): Think of better way to determine whether 2 paths are the
# same or not.
path_parts_1 = path_1.lower().split('/')
« no previous file with comments | « appengine/findit/common/chrome_dependency_fetcher.py ('k') | appengine/findit/crash/loglinear/changelist_classifier.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698