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

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

Issue 2613153006: [Predator] Add TouchCrashedFileMetaFeature. (Closed)
Patch Set: Fix nits. 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:
Martin Barbella 2017/01/24 18:52:53 We're only worried about None here, right? I don't
Sharu Jiang 2017/01/24 19:43:11 Actually it's possible that a path is None, we are
+ 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('/')

Powered by Google App Engine
This is Rietveld 408576698