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

Side by Side Diff: appengine/findit/model/crash/cracas_crash_analysis.py

Issue 2322133002: [Findit] Add cracas_crash_analysis (Closed)
Patch Set: Overwrite _CreateKey method. Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « appengine/findit/crash/findit_for_client.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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.fracas_crash_analysis import FracasCrashAnalysis
11
12 # TODO(katesonia): Deprecate FracasCrashAnalysis after switching from Fracas
13 # to Cracas.
14 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.
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())
OLDNEW
« no previous file with comments | « appengine/findit/crash/findit_for_client.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698