| Index: chrome/browser/nacl_host/nacl_browser_delegate_impl.cc
|
| diff --git a/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc b/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc
|
| index e1c5498b5bbbcbc416a8081b6f77f32388a7021b..29510599f29aed8e0125b0b741e030fe1851f9a8 100644
|
| --- a/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc
|
| +++ b/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc
|
| @@ -140,7 +140,9 @@ ppapi::host::HostFactory* NaClBrowserDelegateImpl::CreatePpapiHostFactory(
|
| return new chrome::ChromeBrowserPepperHostFactory(ppapi_host);
|
| }
|
|
|
| -void NaClBrowserDelegateImpl::SetDebugPatterns(std::string debug_patterns) {
|
| +void NaClBrowserDelegateImpl::SetDebugPatterns(
|
| + const std::string& debug_patterns) {
|
| +#if defined(ENABLE_EXTENSIONS)
|
| if (!debug_patterns.empty() && debug_patterns[0] == '!') {
|
| inverse_debug_patterns_ = true;
|
| debug_patterns.erase(0, 1);
|
| @@ -166,10 +168,12 @@ void NaClBrowserDelegateImpl::SetDebugPatterns(std::string debug_patterns) {
|
| debug_patterns_.push_back(pattern);
|
| }
|
| }
|
| +#endif // defined(ENABLE_EXTENSIONS)
|
| }
|
|
|
| bool NaClBrowserDelegateImpl::URLMatchesDebugPatterns(
|
| const GURL& manifest_url) {
|
| +#if defined(ENABLE_EXTENSIONS)
|
| // Empty patterns are forbidden so we ignore them.
|
| if (debug_patterns_.empty()) {
|
| return true;
|
| @@ -187,6 +191,9 @@ bool NaClBrowserDelegateImpl::URLMatchesDebugPatterns(
|
| } else {
|
| return matches;
|
| }
|
| +#else
|
| + return false;
|
| +#endif // defined(ENABLE_EXTENSIONS)
|
| }
|
|
|
| // This function is security sensitive. Be sure to check with a security
|
|
|