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

Side by Side Diff: chrome/browser/ui/webui/performance_monitor/performance_monitor_handler.cc

Issue 10987040: Fix CPM casting issue; refactor renderer crash events (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Nit fixes, latest master Created 8 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/ui/webui/performance_monitor/performance_monitor_handle r.h" 5 #include "chrome/browser/ui/webui/performance_monitor/performance_monitor_handle r.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 event_set.insert(EVENT_EXTENSION_INSTALL); 57 event_set.insert(EVENT_EXTENSION_INSTALL);
58 event_set.insert(EVENT_EXTENSION_UNINSTALL); 58 event_set.insert(EVENT_EXTENSION_UNINSTALL);
59 event_set.insert(EVENT_EXTENSION_UPDATE); 59 event_set.insert(EVENT_EXTENSION_UPDATE);
60 event_set.insert(EVENT_EXTENSION_ENABLE); 60 event_set.insert(EVENT_EXTENSION_ENABLE);
61 event_set.insert(EVENT_EXTENSION_DISABLE); 61 event_set.insert(EVENT_EXTENSION_DISABLE);
62 break; 62 break;
63 case EVENT_CATEGORY_CHROME: 63 case EVENT_CATEGORY_CHROME:
64 event_set.insert(EVENT_CHROME_UPDATE); 64 event_set.insert(EVENT_CHROME_UPDATE);
65 break; 65 break;
66 case EVENT_CATEGORY_EXCEPTIONS: 66 case EVENT_CATEGORY_EXCEPTIONS:
67 event_set.insert(EVENT_RENDERER_FREEZE); 67 event_set.insert(EVENT_RENDERER_HANG);
68 event_set.insert(EVENT_RENDERER_CRASH); 68 event_set.insert(EVENT_RENDERER_CRASH);
69 event_set.insert(EVENT_KILLED_BY_OS_CRASH); 69 event_set.insert(EVENT_RENDERER_KILLED);
70 event_set.insert(EVENT_UNCLEAN_EXIT); 70 event_set.insert(EVENT_UNCLEAN_EXIT);
71 break; 71 break;
72 default: 72 default:
73 NOTREACHED(); 73 NOTREACHED();
74 } 74 }
75 return event_set; 75 return event_set;
76 } 76 }
77 77
78 Unit GetUnitForMetricCategory(MetricCategory category) { 78 Unit GetUnitForMetricCategory(MetricCategory category) {
79 switch (category) { 79 switch (category) {
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 util::PostTaskToDatabaseThreadAndReply( 458 util::PostTaskToDatabaseThreadAndReply(
459 FROM_HERE, 459 FROM_HERE,
460 base::Bind(&DoGetMetric, results, metric_type, 460 base::Bind(&DoGetMetric, results, metric_type,
461 start, end, resolution), 461 start, end, resolution),
462 base::Bind(&PerformanceMonitorHandler::ReturnResults, AsWeakPtr(), 462 base::Bind(&PerformanceMonitorHandler::ReturnResults, AsWeakPtr(),
463 "PerformanceMonitor.getMetricCallback", 463 "PerformanceMonitor.getMetricCallback",
464 base::Owned(results))); 464 base::Owned(results)));
465 } 465 }
466 466
467 } // namespace performance_monitor 467 } // namespace performance_monitor
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698