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

Unified Diff: chrome/browser/browser_about_handler.cc

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: slight tweaking for comments Created 9 years, 5 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 | « chrome/browser/browser_about_handler.h ('k') | chrome/browser/chrome_content_browser_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_about_handler.cc
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc
index f8cfcbfebd93427aceacc26543841bf06040c045..c8a266ec9e5ed708ec8028c10db12ecf6d923b2d 100644
--- a/chrome/browser/browser_about_handler.cc
+++ b/chrome/browser/browser_about_handler.cc
@@ -1438,7 +1438,9 @@ std::string AboutSource::GetMimeType(const std::string& path) const {
// -----------------------------------------------------------------------------
-void InitializeAboutDataSource(const std::string& name, Profile* profile) {
+void InitializeAboutDataSource(const std::string& name,
+ content::BrowserContext* browser_context) {
+ Profile* profile = static_cast<Profile*>(browser_context);
ChromeURLDataManager* manager = profile->GetChromeURLDataManager();
for (size_t i = 0; i < arraysize(kAboutSourceNames); i++) {
if (name == kAboutSourceNames[i]) {
@@ -1448,7 +1450,8 @@ void InitializeAboutDataSource(const std::string& name, Profile* profile) {
}
}
-bool WillHandleBrowserAboutURL(GURL* url, Profile* profile) {
+bool WillHandleBrowserAboutURL(GURL* url,
+ content::BrowserContext* browser_context) {
// TODO(msw): Eliminate "about:*" constants and literals from code and tests,
// then hopefully we can remove this forced fixup.
*url = URLFixerUpper::FixupURL(url->possibly_invalid_spec(), std::string());
@@ -1499,7 +1502,7 @@ bool WillHandleBrowserAboutURL(GURL* url, Profile* profile) {
}
// Initialize any potentially corresponding AboutSource handler.
- InitializeAboutDataSource(host, profile);
+ InitializeAboutDataSource(host, browser_context);
return true;
}
« no previous file with comments | « chrome/browser/browser_about_handler.h ('k') | chrome/browser/chrome_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698