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

Unified Diff: chrome/browser/devtools/devtools_window.cc

Issue 11783038: Allow multiple WebUIControllerFactory objects to be registered. This makes is possible to implement… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: reland after bogus revert of r175971 Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/devtools/devtools_window.cc
===================================================================
--- chrome/browser/devtools/devtools_window.cc (revision 179096)
+++ chrome/browser/devtools/devtools_window.cc (working copy)
@@ -34,7 +34,6 @@
#include "chrome/common/pref_names.h"
#include "chrome/common/render_messages.h"
#include "chrome/common/url_constants.h"
-#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/devtools_agent_host.h"
#include "content/public/browser/devtools_manager.h"
#include "content/public/browser/favicon_status.h"
@@ -49,6 +48,7 @@
#include "content/public/common/bindings_policy.h"
#include "content/public/common/content_client.h"
#include "content/public/common/page_transition_types.h"
+#include "content/public/common/url_constants.h"
#include "grit/generated_resources.h"
typedef std::vector<DevToolsWindow*> DevToolsWindowList;
@@ -852,19 +852,19 @@
} // namespace
void DevToolsWindow::RequestFileSystems() {
- CHECK(content::GetContentClient()->HasWebUIScheme(web_contents_->GetURL()));
+ CHECK(content::HasWebUIScheme(web_contents_->GetURL()));
file_helper_->RequestFileSystems(
Bind(&DevToolsWindow::FileSystemsLoaded, weak_factory_.GetWeakPtr()));
}
void DevToolsWindow::AddFileSystem() {
- CHECK(content::GetContentClient()->HasWebUIScheme(web_contents_->GetURL()));
+ CHECK(content::HasWebUIScheme(web_contents_->GetURL()));
file_helper_->AddFileSystem(
Bind(&DevToolsWindow::FileSystemAdded, weak_factory_.GetWeakPtr()));
}
void DevToolsWindow::RemoveFileSystem(const std::string& file_system_path) {
- CHECK(content::GetContentClient()->HasWebUIScheme(web_contents_->GetURL()));
+ CHECK(content::HasWebUIScheme(web_contents_->GetURL()));
file_helper_->RemoveFileSystem(file_system_path);
StringValue file_system_path_value(file_system_path);
CallClientFunction("InspectorFrontendAPI.fileSystemRemoved",
« no previous file with comments | « chrome/browser/devtools/devtools_file_helper.cc ('k') | chrome/browser/extensions/api/debugger/debugger_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698