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

Side by Side Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 1014543003: Add an IPC method for Blink to call RapporService::RecordSample() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use SampleString in rappor_utils Created 5 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
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/renderer/chrome_content_renderer_client.h" 5 #include "chrome/renderer/chrome_content_renderer_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/debug/crash_logging.h" 8 #include "base/debug/crash_logging.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
(...skipping 1621 matching lines...) Expand 10 before | Expand all | Expand 10 after
1632 if (mime_type == content::kBrowserPluginMimeType) { 1632 if (mime_type == content::kBrowserPluginMimeType) {
1633 return new extensions::ExtensionsGuestViewContainer(render_frame); 1633 return new extensions::ExtensionsGuestViewContainer(render_frame);
1634 } else { 1634 } else {
1635 return new extensions::MimeHandlerViewContainer( 1635 return new extensions::MimeHandlerViewContainer(
1636 render_frame, mime_type, original_url); 1636 render_frame, mime_type, original_url);
1637 } 1637 }
1638 #else 1638 #else
1639 return NULL; 1639 return NULL;
1640 #endif 1640 #endif
1641 } 1641 }
1642
1643 void ChromeContentRendererClient::RecordRappor(const std::string& metric,
1644 const std::string& sample) {
1645 RenderThread::Get()->Send(new ChromeViewHostMsg_RecordRappor(metric, sample));
1646 }
1647
1648 void ChromeContentRendererClient::RecordRapporURL(const std::string& metric,
1649 const GURL& url) {
1650 RenderThread::Get()->Send(new ChromeViewHostMsg_RecordRapporURL(metric, url));
1651 }
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.h ('k') | content/public/renderer/content_renderer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698