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

Unified Diff: appengine/predator/app/frontend/handlers/report_crash.py

Issue 2447253002: [Findit & Predator] Code reorg of Findit. (Closed)
Patch Set: Clean up. Created 4 years, 1 month 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/predator/app/frontend/handlers/report_crash.py
diff --git a/appengine/predator/app/frontend/handlers/report_crash.py b/appengine/predator/app/frontend/handlers/report_crash.py
new file mode 100644
index 0000000000000000000000000000000000000000..454eab055213cd1c006c3659f5ae2d8edd6c0fee
--- /dev/null
+++ b/appengine/predator/app/frontend/handlers/report_crash.py
@@ -0,0 +1,15 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
Sharu Jiang 2016/11/04 18:39:46 I think we should also have frontend/template/
stgao 2016/11/08 18:53:32 Yes, we could add when an HTML template is added.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from gae_libs.handlers import base_handler
+
+from common.model import crash_analysis
+
+class ReportCrash(base_handler.BaseHandler):
+
+ def HandleGet(self):
+ signature = self.request.get('signature', 'default')
+ crash = crash_analysis.CrashAnalysis.Create(signature=signature)
+ crash.put()
+ self.response.write('You are requesting an analysis for a Chrome crash')

Powered by Google App Engine
This is Rietveld 408576698