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

Unified Diff: appengine/findit/model/crash/chrome_crash_analysis.py

Issue 2663063007: [Predator] Switch from anonymous dict to CrashData. (Closed)
Patch Set: Rebase. Created 3 years, 10 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/model/crash/chrome_crash_analysis.py
diff --git a/appengine/findit/model/crash/chrome_crash_analysis.py b/appengine/findit/model/crash/chrome_crash_analysis.py
index fed1df2cfa3c7fac64d102381bebc2c2da1ce50f..92c3c57c431f48709dc87f4626ed9430ca4d63d1 100644
--- a/appengine/findit/model/crash/chrome_crash_analysis.py
+++ b/appengine/findit/model/crash/chrome_crash_analysis.py
@@ -22,3 +22,9 @@ class ChromeCrashAnalysis(CrashAnalysis):
def customized_data(self):
return {'historical_metadata': self.historical_metadata,
'channel': self.channel}
+
+ def Initialize(self, crash_buffer):
+ """(Re)Initializes a CrashAnalysis ndb.Model from ``ChromeCrashBuffer``."""
+ super(ChromeCrashAnalysis, self).Initialize(crash_buffer)
+ self.channel = crash_buffer.channel
+ self.historical_metadata = crash_buffer.historical_metadata

Powered by Google App Engine
This is Rietveld 408576698