summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/chrome_ppb_pdf_impl.cc
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-19 20:55:08 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-19 20:55:08 +0000
commit4a7d639c0eaf559eda83a5c0e375f83bb8cf7171 (patch)
tree2a6ca9ef426211398f3e736aff5feed1dedf715e /chrome/renderer/chrome_ppb_pdf_impl.cc
parent483861238474e1a8e47c4f6297824e616bd7f828 (diff)
downloadchromium_src-4a7d639c0eaf559eda83a5c0e375f83bb8cf7171.zip
chromium_src-4a7d639c0eaf559eda83a5c0e375f83bb8cf7171.tar.gz
chromium_src-4a7d639c0eaf559eda83a5c0e375f83bb8cf7171.tar.bz2
Move sending of the following IPC messages out of Chrome\renderer.
1. ViewHostMsg_UserMetricsRecordAction. 2. ViewHostMsg_GetPluginInfo. 3. ViewHostMsg_AllocateSharedMemoryBuffer. 4. ViewHostMsg_PreCacheFont Added helper functions to the RenderView and RenderThread classes to ensure that this functionality continues to work as before. Continuing fixes to ensure that IPC messages don't span across Content and Chrome. BUG=87335 TEST=No change in functionality. Review URL: http://codereview.chromium.org/7919002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101826 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/chrome_ppb_pdf_impl.cc')
-rw-r--r--chrome/renderer/chrome_ppb_pdf_impl.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/chrome/renderer/chrome_ppb_pdf_impl.cc b/chrome/renderer/chrome_ppb_pdf_impl.cc
index 31fda37..d890ae4 100644
--- a/chrome/renderer/chrome_ppb_pdf_impl.cc
+++ b/chrome/renderer/chrome_ppb_pdf_impl.cc
@@ -8,7 +8,6 @@
#include "base/utf_string_conversions.h"
#include "build/build_config.h"
#include "chrome/common/render_messages.h"
-#include "content/common/view_messages.h"
#include "content/renderer/pepper_plugin_delegate_impl.h"
#include "content/renderer/render_thread.h"
#include "grit/webkit_resources.h"
@@ -305,8 +304,7 @@ void UserMetricsRecordAction(PP_Var action) {
scoped_refptr<ppapi::StringVar> action_str(
ppapi::StringVar::FromPPVar(action));
if (action_str) {
- RenderThread::current()->Send(
- new ViewHostMsg_UserMetricsRecordAction(action_str->value()));
+ RenderThread::RecordUserMetrics(action_str->value());
}
}