Chromium Code Reviews| 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') |