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

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: works now 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 65c1d08474bb294874689251ce53c2587be06662..410565e4fa3944c47d453b218c0ab1d9cdd7d650 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* context) {
+ Profile* profile = static_cast<Profile*>(context);
ChromeURLDataManager* manager = profile->GetChromeURLDataManager();
for (size_t i = 0; i < arraysize(kAboutSourceNames); i++) {
if (name == kAboutSourceNames[i]) {
@@ -1448,7 +1450,7 @@ void InitializeAboutDataSource(const std::string& name, Profile* profile) {
}
}
-bool WillHandleBrowserAboutURL(GURL* url, Profile* profile) {
+bool WillHandleBrowserAboutURL(GURL* url, content::BrowserContext* 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 +1501,7 @@ bool WillHandleBrowserAboutURL(GURL* url, Profile* profile) {
}
// Initialize any potentially corresponding AboutSource handler.
- InitializeAboutDataSource(host, profile);
+ InitializeAboutDataSource(host, context);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698