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

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

Issue 23007021: Report Javascript Runtime Errors to the Error Console (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dc_ec_feldman
Patch Set: Created 7 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
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/chrome_render_view_observer.h » ('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 "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/logging.h" 8 #include "base/logging.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 #include "chrome/renderer/validation_message_agent.h" 64 #include "chrome/renderer/validation_message_agent.h"
65 #include "components/autofill/content/renderer/autofill_agent.h" 65 #include "components/autofill/content/renderer/autofill_agent.h"
66 #include "components/autofill/content/renderer/password_autofill_agent.h" 66 #include "components/autofill/content/renderer/password_autofill_agent.h"
67 #include "components/autofill/content/renderer/password_generation_manager.h" 67 #include "components/autofill/content/renderer/password_generation_manager.h"
68 #include "components/visitedlink/renderer/visitedlink_slave.h" 68 #include "components/visitedlink/renderer/visitedlink_slave.h"
69 #include "content/public/common/content_constants.h" 69 #include "content/public/common/content_constants.h"
70 #include "content/public/renderer/render_thread.h" 70 #include "content/public/renderer/render_thread.h"
71 #include "content/public/renderer/render_view.h" 71 #include "content/public/renderer/render_view.h"
72 #include "content/public/renderer/render_view_visitor.h" 72 #include "content/public/renderer/render_view_visitor.h"
73 #include "extensions/common/constants.h" 73 #include "extensions/common/constants.h"
74 #include "extensions/common/extension_urls.h"
74 #include "grit/generated_resources.h" 75 #include "grit/generated_resources.h"
75 #include "grit/locale_settings.h" 76 #include "grit/locale_settings.h"
76 #include "grit/renderer_resources.h" 77 #include "grit/renderer_resources.h"
77 #include "ipc/ipc_sync_channel.h" 78 #include "ipc/ipc_sync_channel.h"
78 #include "net/base/net_errors.h" 79 #include "net/base/net_errors.h"
79 #include "ppapi/c/private/ppb_nacl_private.h" 80 #include "ppapi/c/private/ppb_nacl_private.h"
80 #include "ppapi/c/private/ppb_pdf.h" 81 #include "ppapi/c/private/ppb_pdf.h"
81 #include "ppapi/shared_impl/ppapi_switches.h" 82 #include "ppapi/shared_impl/ppapi_switches.h"
82 #include "third_party/WebKit/public/web/WebCache.h" 83 #include "third_party/WebKit/public/web/WebCache.h"
83 #include "third_party/WebKit/public/web/WebDataSource.h" 84 #include "third_party/WebKit/public/web/WebDataSource.h"
(...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after
1294 if (CommandLine::ForCurrentProcess()->HasSwitch( 1295 if (CommandLine::ForCurrentProcess()->HasSwitch(
1295 switches::kEnablePepperTesting)) { 1296 switches::kEnablePepperTesting)) {
1296 return true; 1297 return true;
1297 } 1298 }
1298 #endif // !defined(OS_ANDROID) 1299 #endif // !defined(OS_ANDROID)
1299 return false; 1300 return false;
1300 } 1301 }
1301 1302
1302 bool ChromeContentRendererClient::ShouldReportDetailedMessageForSource( 1303 bool ChromeContentRendererClient::ShouldReportDetailedMessageForSource(
1303 const base::string16& source) const { 1304 const base::string16& source) const {
1304 return GURL(source).SchemeIs(extensions::kExtensionScheme); 1305 return extensions::IsSourceFromAnExtension(source);
1305 } 1306 }
1306 1307
1307 } // namespace chrome 1308 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/chrome_render_view_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698