| 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;
|
| }
|
|
|
|
|