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

Side by Side Diff: chrome/renderer/pepper/pepper_uma_host.cc

Issue 831813004: Get nacl building again for android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove process launcher change Created 5 years, 11 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/pepper/pepper_uma_host.h" 5 #include "chrome/renderer/pepper/pepper_uma_host.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "base/sha1.h" 8 #include "base/sha1.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "chrome/common/chrome_switches.h" 10 #include "chrome/common/chrome_switches.h"
11 #include "chrome/common/render_messages.h" 11 #include "chrome/common/render_messages.h"
12 #include "chrome/renderer/chrome_content_renderer_client.h" 12 #include "chrome/renderer/chrome_content_renderer_client.h"
13 #include "content/public/renderer/pepper_plugin_instance.h" 13 #include "content/public/renderer/pepper_plugin_instance.h"
14 #include "content/public/renderer/render_thread.h" 14 #include "content/public/renderer/render_thread.h"
15 #include "content/public/renderer/renderer_ppapi_host.h" 15 #include "content/public/renderer/renderer_ppapi_host.h"
16 #if defined(ENABLE_EXTENSIONS)
Lei Zhang 2015/01/21 21:32:22 nit: move these down to their own section.
sehr 2015/01/22 19:57:22 Done.
16 #include "extensions/common/constants.h" 17 #include "extensions/common/constants.h"
17 #include "extensions/common/extension.h" 18 #include "extensions/common/extension.h"
19 #endif // defined(ENABLE_EXTENSIONS)
18 #include "ppapi/c/pp_errors.h" 20 #include "ppapi/c/pp_errors.h"
19 #include "ppapi/host/dispatch_host_message.h" 21 #include "ppapi/host/dispatch_host_message.h"
20 #include "ppapi/host/host_message_context.h" 22 #include "ppapi/host/host_message_context.h"
21 #include "ppapi/host/ppapi_host.h" 23 #include "ppapi/host/ppapi_host.h"
22 #include "ppapi/proxy/ppapi_messages.h" 24 #include "ppapi/proxy/ppapi_messages.h"
23 25
24 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR. 26 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR.
25 27
26 namespace { 28 namespace {
27 29
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 ppapi::host::HostMessageContext* context) { 202 ppapi::host::HostMessageContext* context) {
201 if (!IsPluginWhitelisted()) 203 if (!IsPluginWhitelisted())
202 return PP_ERROR_NOACCESS; 204 return PP_ERROR_NOACCESS;
203 bool enabled = false; 205 bool enabled = false;
204 content::RenderThread::Get()->Send( 206 content::RenderThread::Get()->Send(
205 new ChromeViewHostMsg_IsCrashReportingEnabled(&enabled)); 207 new ChromeViewHostMsg_IsCrashReportingEnabled(&enabled));
206 if (enabled) 208 if (enabled)
207 return PP_OK; 209 return PP_OK;
208 return PP_ERROR_FAILED; 210 return PP_ERROR_FAILED;
209 } 211 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698