| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 from google.appengine.ext import ndb | 5 from google.appengine.ext import ndb |
| 6 | 6 |
| 7 from model.crash.crash_analysis import CrashAnalysis | 7 from model.crash.crash_analysis import CrashAnalysis |
| 8 | 8 |
| 9 | 9 |
| 10 class ChromeCrashAnalysis(CrashAnalysis): | 10 class ChromeCrashAnalysis(CrashAnalysis): |
| 11 """Represents an analysis of a Chrome Crash (Cracas or Fracas).""" | 11 """Represents an analysis of a Chrome Crash (Cracas or Fracas).""" |
| 12 # Customized properties for Fracas crash. | 12 # Customized properties for Fracas crash. |
| 13 historical_metadata = ndb.JsonProperty(indexed=False) | 13 historical_metadata = ndb.JsonProperty(indexed=False) |
| 14 channel = ndb.StringProperty(indexed=False) | 14 channel = ndb.StringProperty(indexed=False) |
| 15 | 15 |
| 16 def Reset(self): | 16 def Reset(self): |
| 17 super(ChromeCrashAnalysis, self).Reset() | 17 super(ChromeCrashAnalysis, self).Reset() |
| 18 self.historical_metadata = None | 18 self.historical_metadata = None |
| 19 self.channel = None | 19 self.channel = None |
| 20 |
| 21 @property |
| 22 def customized_data(self): |
| 23 return {'historical_metadata': self.historical_metadata, |
| 24 'channel': self.channel} |
| OLD | NEW |