| OLD | NEW |
| 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 1280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1291 } | 1291 } |
| 1292 // Allow access for tests. | 1292 // Allow access for tests. |
| 1293 if (CommandLine::ForCurrentProcess()->HasSwitch( | 1293 if (CommandLine::ForCurrentProcess()->HasSwitch( |
| 1294 switches::kEnablePepperTesting)) { | 1294 switches::kEnablePepperTesting)) { |
| 1295 return true; | 1295 return true; |
| 1296 } | 1296 } |
| 1297 #endif // !defined(OS_ANDROID) | 1297 #endif // !defined(OS_ANDROID) |
| 1298 return false; | 1298 return false; |
| 1299 } | 1299 } |
| 1300 | 1300 |
| 1301 bool ChromeContentRendererClient::ShouldReportDetailedMessageForSource( |
| 1302 const base::string16& source) const { |
| 1303 return GURL(source).SchemeIs(extensions::kExtensionScheme); |
| 1304 } |
| 1301 | 1305 |
| 1302 } // namespace chrome | 1306 } // namespace chrome |
| OLD | NEW |