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

Side by Side Diff: components/dom_distiller/content/browser/distiller_page_web_contents.cc

Issue 2293583002: Change includes of histogram.h to histogram_macros.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 "components/dom_distiller/content/browser/distiller_page_web_contents.h " 5 #include "components/dom_distiller/content/browser/distiller_page_web_contents.h "
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram_macros.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "components/dom_distiller/content/browser/distiller_javascript_utils.h" 13 #include "components/dom_distiller/content/browser/distiller_javascript_utils.h"
14 #include "components/dom_distiller/content/browser/web_contents_main_frame_obser ver.h" 14 #include "components/dom_distiller/content/browser/web_contents_main_frame_obser ver.h"
15 #include "components/dom_distiller/core/distiller_page.h" 15 #include "components/dom_distiller/core/distiller_page.h"
16 #include "components/dom_distiller/core/dom_distiller_constants.h" 16 #include "components/dom_distiller/core/dom_distiller_constants.h"
17 #include "components/dom_distiller/core/dom_distiller_service.h" 17 #include "components/dom_distiller/core/dom_distiller_service.h"
18 #include "content/public/browser/browser_context.h" 18 #include "content/public/browser/browser_context.h"
19 #include "content/public/browser/navigation_controller.h" 19 #include "content/public/browser/navigation_controller.h"
20 #include "content/public/browser/render_frame_host.h" 20 #include "content/public/browser/render_frame_host.h"
21 #include "content/public/browser/render_view_host.h" 21 #include "content/public/browser/render_view_host.h"
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 if (!javascript_start.is_null()) { 203 if (!javascript_start.is_null()) {
204 base::TimeDelta javascript_time = base::TimeTicks::Now() - javascript_start; 204 base::TimeDelta javascript_time = base::TimeTicks::Now() - javascript_start;
205 UMA_HISTOGRAM_TIMES("DomDistiller.Time.RunJavaScript", javascript_time); 205 UMA_HISTOGRAM_TIMES("DomDistiller.Time.RunJavaScript", javascript_time);
206 DVLOG(1) << "DomDistiller.Time.RunJavaScript = " << javascript_time; 206 DVLOG(1) << "DomDistiller.Time.RunJavaScript = " << javascript_time;
207 } 207 }
208 208
209 DistillerPage::OnDistillationDone(page_url, value); 209 DistillerPage::OnDistillationDone(page_url, value);
210 } 210 }
211 211
212 } // namespace dom_distiller 212 } // namespace dom_distiller
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698