Chromium Code Reviews| Index: appengine/findit/model/crash/cracas_crash_analysis.py |
| diff --git a/appengine/findit/model/crash/cracas_crash_analysis.py b/appengine/findit/model/crash/cracas_crash_analysis.py |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f8ec169ffc27776f14fc9afc5dd75ddbd8315223 |
| --- /dev/null |
| +++ b/appengine/findit/model/crash/cracas_crash_analysis.py |
| @@ -0,0 +1,20 @@ |
| +# Copyright 2016 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +import hashlib |
| +import json |
| + |
| +from google.appengine.ext import ndb |
| + |
| +from model.crash.fracas_crash_analysis import FracasCrashAnalysis |
| + |
| +# TODO(katesonia): Deprecate FracasCrashAnalysis after switching from Fracas |
| +# to Cracas. |
| +class CracasCrashAnalysis(FracasCrashAnalysis): |
|
wrengr (wrong one)
2016/09/09 17:58:24
Like mbarbella says, this doesn't look clean. Espe
Sharu Jiang
2016/09/09 23:19:42
Done.
|
| + """Represents an analysis of a Chrome crash.""" |
| + |
| + @staticmethod |
| + def _CreateKey(crash_identifiers): |
| + return ndb.Key('CracasCrashAnalysis', hashlib.sha1( |
| + json.dumps(crash_identifiers, sort_keys=True)).hexdigest()) |