| Index: chrome/browser/extensions/extension_web_ui.cc
|
| diff --git a/chrome/browser/extensions/extension_web_ui.cc b/chrome/browser/extensions/extension_web_ui.cc
|
| index 06dae536319e928b0756de4657c4c339b9638456..1fa37bce329f281f2a2811472280f3b9f700921a 100644
|
| --- a/chrome/browser/extensions/extension_web_ui.cc
|
| +++ b/chrome/browser/extensions/extension_web_ui.cc
|
| @@ -377,6 +377,9 @@ bool ExtensionWebUI::HandleChromeURLOverride(
|
| if (!url->SchemeIs(content::kChromeUIScheme))
|
| return false;
|
|
|
| + if (!browser_context)
|
| + return false;
|
| +
|
| Profile* profile = Profile::FromBrowserContext(browser_context);
|
| const base::DictionaryValue* overrides =
|
| profile->GetPrefs()->GetDictionary(kExtensionURLOverrides);
|
| @@ -440,6 +443,9 @@ bool ExtensionWebUI::HandleChromeURLOverride(
|
| // static
|
| bool ExtensionWebUI::HandleChromeURLOverrideReverse(
|
| GURL* url, content::BrowserContext* browser_context) {
|
| + if (!browser_context)
|
| + return false;
|
| +
|
| Profile* profile = Profile::FromBrowserContext(browser_context);
|
| const base::DictionaryValue* overrides =
|
| profile->GetPrefs()->GetDictionary(kExtensionURLOverrides);
|
|
|