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

Side by Side Diff: content/renderer/media/android/media_info_loader.cc

Issue 2303653005: Migrate content/ files to histogram_macros.h includes. (Closed)
Patch Set: Created 4 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/renderer/media/android/media_info_loader.h" 5 #include "content/renderer/media/android/media_info_loader.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bits.h" 9 #include "base/bits.h"
10 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram_macros.h"
12 #include "third_party/WebKit/public/platform/WebURLError.h" 12 #include "third_party/WebKit/public/platform/WebURLError.h"
13 #include "third_party/WebKit/public/platform/WebURLLoader.h" 13 #include "third_party/WebKit/public/platform/WebURLLoader.h"
14 #include "third_party/WebKit/public/platform/WebURLResponse.h" 14 #include "third_party/WebKit/public/platform/WebURLResponse.h"
15 #include "third_party/WebKit/public/web/WebFrame.h" 15 #include "third_party/WebKit/public/web/WebFrame.h"
16 16
17 using blink::WebFrame; 17 using blink::WebFrame;
18 using blink::WebURLError; 18 using blink::WebURLError;
19 using blink::WebURLLoader; 19 using blink::WebURLLoader;
20 using blink::WebURLLoaderOptions; 20 using blink::WebURLLoaderOptions;
21 using blink::WebURLRequest; 21 using blink::WebURLRequest;
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 void MediaInfoLoader::DidBecomeReady(Status status) { 207 void MediaInfoLoader::DidBecomeReady(Status status) {
208 UMA_HISTOGRAM_TIMES("Media.InfoLoadDelay", 208 UMA_HISTOGRAM_TIMES("Media.InfoLoadDelay",
209 base::TimeTicks::Now() - start_time_); 209 base::TimeTicks::Now() - start_time_);
210 active_loader_.reset(); 210 active_loader_.reset();
211 if (!ready_cb_.is_null()) 211 if (!ready_cb_.is_null())
212 base::ResetAndReturn(&ready_cb_).Run(status, url_, first_party_url_, 212 base::ResetAndReturn(&ready_cb_).Run(status, url_, first_party_url_,
213 allow_stored_credentials_); 213 allow_stored_credentials_);
214 } 214 }
215 215
216 } // namespace content 216 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/manifest/manifest_uma_util.cc ('k') | content/renderer/media/android/webmediaplayer_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698