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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 1674593003: Collect separate V8 histograms for Calendar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | 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/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 std::string RenderThreadImpl::HistogramCustomizer::HostToCustomHistogramSuffix( 530 std::string RenderThreadImpl::HistogramCustomizer::HostToCustomHistogramSuffix(
531 const std::string& host) { 531 const std::string& host) {
532 if (host == "mail.google.com") 532 if (host == "mail.google.com")
533 return ".gmail"; 533 return ".gmail";
534 if (host == "docs.google.com" || host == "drive.google.com") 534 if (host == "docs.google.com" || host == "drive.google.com")
535 return ".docs"; 535 return ".docs";
536 if (host == "plus.google.com") 536 if (host == "plus.google.com")
537 return ".plus"; 537 return ".plus";
538 if (host == "inbox.google.com") 538 if (host == "inbox.google.com")
539 return ".inbox"; 539 return ".inbox";
540 if (host == "calendar.google.com")
541 return ".calendar";
540 if (host == "www.youtube.com") 542 if (host == "www.youtube.com")
541 return ".youtube"; 543 return ".youtube";
542 if (IsAlexaTop10NonGoogleSite(host)) 544 if (IsAlexaTop10NonGoogleSite(host))
543 return ".top10"; 545 return ".top10";
544 546
545 return std::string(); 547 return std::string();
546 } 548 }
547 549
548 bool RenderThreadImpl::HistogramCustomizer::IsAlexaTop10NonGoogleSite( 550 bool RenderThreadImpl::HistogramCustomizer::IsAlexaTop10NonGoogleSite(
549 const std::string& host) { 551 const std::string& host) {
(...skipping 1564 matching lines...) Expand 10 before | Expand all | Expand 10 after
2114 } 2116 }
2115 2117
2116 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { 2118 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() {
2117 size_t erased = 2119 size_t erased =
2118 RenderThreadImpl::current()->pending_render_frame_connects_.erase( 2120 RenderThreadImpl::current()->pending_render_frame_connects_.erase(
2119 routing_id_); 2121 routing_id_);
2120 DCHECK_EQ(1u, erased); 2122 DCHECK_EQ(1u, erased);
2121 } 2123 }
2122 2124
2123 } // namespace content 2125 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698