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

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: browser_context 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
Index: chrome/browser/browser_about_handler.cc
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc
index 95785ffda35430af563c38e1dd792911d15aa117..e48ec7b8e2731f7f503c91104eacebd3ffd9bbc7 100644
--- a/chrome/browser/browser_about_handler.cc
+++ b/chrome/browser/browser_about_handler.cc
@@ -1440,7 +1440,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]) {
@@ -1450,7 +1452,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());
@@ -1501,7 +1504,7 @@ bool WillHandleBrowserAboutURL(GURL* url, Profile* profile) {
}
// Initialize any potentially corresponding AboutSource handler.
- InitializeAboutDataSource(host, profile);
+ InitializeAboutDataSource(host, browser_context);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698