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

Side by Side Diff: content/browser/plugin_loader_posix.cc

Issue 229873002: [UMA] Fix a crash on logging user actions posted from a non-UI thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: De-nitting Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « base/metrics/user_metrics.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "content/browser/plugin_loader_posix.h" 5 #include "content/browser/plugin_loader_posix.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
11 #include "base/metrics/user_metrics.h"
12 #include "content/browser/utility_process_host_impl.h" 11 #include "content/browser/utility_process_host_impl.h"
13 #include "content/common/child_process_host_impl.h" 12 #include "content/common/child_process_host_impl.h"
14 #include "content/common/plugin_list.h" 13 #include "content/common/plugin_list.h"
15 #include "content/common/utility_messages.h" 14 #include "content/common/utility_messages.h"
16 #include "content/public/browser/browser_thread.h" 15 #include "content/public/browser/browser_thread.h"
17 #include "content/public/browser/plugin_service.h" 16 #include "content/public/browser/plugin_service.h"
17 #include "content/public/browser/user_metrics.h"
18 18
19 namespace content { 19 namespace content {
20 20
21 PluginLoaderPosix::PluginLoaderPosix() 21 PluginLoaderPosix::PluginLoaderPosix()
22 : next_load_index_(0) { 22 : next_load_index_(0) {
23 } 23 }
24 24
25 void PluginLoaderPosix::GetPlugins( 25 void PluginLoaderPosix::GetPlugins(
26 const PluginService::GetPluginsCallback& callback) { 26 const PluginService::GetPluginsCallback& callback) {
27 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 27 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 211
212 HISTOGRAM_TIMES("PluginLoaderPosix.LoadDone", 212 HISTOGRAM_TIMES("PluginLoaderPosix.LoadDone",
213 (base::TimeTicks::Now() - load_start_time_) 213 (base::TimeTicks::Now() - load_start_time_)
214 * base::Time::kMicrosecondsPerMillisecond); 214 * base::Time::kMicrosecondsPerMillisecond);
215 load_start_time_ = base::TimeTicks(); 215 load_start_time_ = base::TimeTicks();
216 216
217 return true; 217 return true;
218 } 218 }
219 219
220 } // namespace content 220 } // namespace content
OLDNEW
« no previous file with comments | « base/metrics/user_metrics.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698