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

Unified Diff: appengine/findit/handlers/crash/crash_handler.py

Issue 2432203003: [Predator] Run predator. (Closed)
Patch Set: . 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/findit/handlers/crash/crash_handler.py
diff --git a/appengine/findit/handlers/crash/crash_handler.py b/appengine/findit/handlers/crash/crash_handler.py
index b446c737635fb68108ae66ac0533fa9560c1ba25..d29037b5004459aab66fea24106cc3a8ced1ba7e 100644
--- a/appengine/findit/handlers/crash/crash_handler.py
+++ b/appengine/findit/handlers/crash/crash_handler.py
@@ -9,8 +9,10 @@ import logging
from common import constants
from common.base_handler import BaseHandler
from common.base_handler import Permission
+from common.http_client_appengine import HttpClientAppengine
from crash.crash_pipeline import FinditForClientID
from crash.crash_report import CrashReport
+from lib.gitiles.gitiles_repository import GitilesRepository
class CrashHandler(BaseHandler):
@@ -104,7 +106,9 @@ class CrashHandler(BaseHandler):
logging.info('Crash data is %s', json.dumps(crash_data))
client_id = crash_data['client_id']
- FinditForClientID(client_id).ScheduleNewAnalysis(crash_data,
+ repository = GitilesRepository(http_client=HttpClientAppengine())
+ FinditForClientID(client_id, repository).ScheduleNewAnalysis(
+ crash_data,
queue_name=constants.CRASH_ANALYSIS_QUEUE[client_id])
except (KeyError, ValueError): # pragma: no cover.
# TODO: save exception in datastore and create a page to show them.

Powered by Google App Engine
This is Rietveld 408576698