| Index: chrome/browser/extensions/api/debugger/debugger_api.cc
|
| ===================================================================
|
| --- chrome/browser/extensions/api/debugger/debugger_api.cc (revision 175970)
|
| +++ chrome/browser/extensions/api/debugger/debugger_api.cc (working copy)
|
| @@ -36,6 +36,7 @@
|
| #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"
|
| @@ -428,8 +429,7 @@
|
| }
|
| contents_ = web_contents;
|
|
|
| - if (content::GetContentClient()->HasWebUIScheme(
|
| - contents_->GetURL())) {
|
| + if (content::HasWebUIScheme(contents_->GetURL())) {
|
| error_ = ErrorUtils::FormatErrorMessage(
|
| keys::kAttachToWebUIError,
|
| contents_->GetURL().scheme());
|
|
|