Index: chrome/browser/extensions/api/debugger/debugger_api.cc |
=================================================================== |
--- chrome/browser/extensions/api/debugger/debugger_api.cc (revision 175856) |
+++ chrome/browser/extensions/api/debugger/debugger_api.cc (working copy) |
@@ -36,7 +36,6 @@ |
#include "content/public/browser/render_view_host.h" |
#include "content/public/browser/web_contents.h" |
#include "content/public/common/content_client.h" |
-#include "content/public/common/url_constants.h" |
#include "extensions/common/error_utils.h" |
#include "grit/generated_resources.h" |
#include "ui/base/l10n/l10n_util.h" |
@@ -429,7 +428,8 @@ |
} |
contents_ = web_contents; |
- if (content::HasWebUIScheme(contents_->GetURL())) { |
+ if (content::GetContentClient()->HasWebUIScheme( |
+ contents_->GetURL())) { |
error_ = ErrorUtils::FormatErrorMessage( |
keys::kAttachToWebUIError, |
contents_->GetURL().scheme()); |