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

Unified Diff: chrome/browser/ui/webui/chrome_url_data_manager_backend.cc

Issue 7002017: Get rid of another dependency on /chrome. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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
« no previous file with comments | « no previous file | content/browser/appcache/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chrome_url_data_manager_backend.cc
===================================================================
--- chrome/browser/ui/webui/chrome_url_data_manager_backend.cc (revision 85004)
+++ chrome/browser/ui/webui/chrome_url_data_manager_backend.cc (working copy)
@@ -18,7 +18,6 @@
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/url_constants.h"
-#include "content/browser/appcache/view_appcache_internals_job_factory.h"
#include "content/browser/browser_thread.h"
#include "googleurl/src/url_util.h"
#include "grit/platform_locale_settings.h"
@@ -28,6 +27,7 @@
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_file_job.h"
#include "net/url_request/url_request_job.h"
+#include "webkit/appcache/view_appcache_internals_job.h"
namespace {
@@ -62,6 +62,12 @@
path->assign(spec.substr(offset));
}
+bool IsViewAppCacheInternalsURL(const GURL& url) {
+ return StartsWithASCII(url.spec(),
+ chrome::kAppCacheViewInternalsURL,
+ true /*case_sensitive*/);
+}
+
} // namespace
// URLRequestChromeJob is a net::URLRequestJob that manages running
@@ -274,8 +280,8 @@
return ViewHttpCacheJobFactory::CreateJobForRequest(request);
// Next check for chrome://appcache-internals/, which uses its own job type.
- if (ViewAppCacheInternalsJobFactory::IsSupportedURL(request->url()))
- return ViewAppCacheInternalsJobFactory::CreateJobForRequest(
+ if (IsViewAppCacheInternalsURL(request->url()))
+ return new appcache::ViewAppCacheInternalsJob(
request, chrome_request_context->appcache_service());
// Next check for chrome://blob-internals/, which uses its own job type.
« no previous file with comments | « no previous file | content/browser/appcache/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698