Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 import hashlib | |
| 6 import json | |
| 7 | |
| 8 from google.appengine.ext import ndb | |
| 9 | |
| 10 from model.crash.chrome_crash_analysis import ChromeCrashAnalysis | |
| 11 | |
| 12 # TODO(katesonia): Deprecate FracasCrashAnalysis after switching from Fracas | |
|
wrengr (wrong one)
2016/09/10 00:22:06
This todo is no longer relevant (for this file)
Sharu Jiang
2016/09/14 20:46:36
Done.
| |
| 13 # to Cracas. | |
| 14 class CracasCrashAnalysis(ChromeCrashAnalysis): | |
| 15 """Represents an analysis of a Chrome crash.""" | |
| 16 | |
| 17 @staticmethod | |
| 18 def _CreateKey(crash_identifiers): | |
| 19 return ndb.Key('CracasCrashAnalysis', hashlib.sha1( | |
| 20 json.dumps(crash_identifiers, sort_keys=True)).hexdigest()) | |
| OLD | NEW |