| Index: chrome/browser/ui/webui/options/content_settings_handler.cc
|
| diff --git a/chrome/browser/ui/webui/options/content_settings_handler.cc b/chrome/browser/ui/webui/options/content_settings_handler.cc
|
| index 7a4babbba338d37453bf482a6ef61ca4d5a0a1ab..e5f02cca008ae843f6acd3b2126df7919daf9abd 100644
|
| --- a/chrome/browser/ui/webui/options/content_settings_handler.cc
|
| +++ b/chrome/browser/ui/webui/options/content_settings_handler.cc
|
| @@ -527,21 +527,16 @@ void ContentSettingsHandler::Observe(
|
| const content::NotificationDetails& details) {
|
| switch (type) {
|
| case chrome::NOTIFICATION_PROFILE_DESTROYED: {
|
| - Profile* profile = content::Source<Profile>(source).ptr();
|
| - if (profile->IsOffTheRecord()) {
|
| + if (content::Source<Profile>(source).ptr()->IsOffTheRecord()) {
|
| web_ui()->CallJavascriptFunction(
|
| "ContentSettingsExceptionsArea.OTRProfileDestroyed");
|
| - observer_.Remove(profile->GetHostContentSettingsMap());
|
| }
|
| break;
|
| }
|
|
|
| case chrome::NOTIFICATION_PROFILE_CREATED: {
|
| - Profile* profile = content::Source<Profile>(source).ptr();
|
| - if (profile->IsOffTheRecord()) {
|
| + if (content::Source<Profile>(source).ptr()->IsOffTheRecord())
|
| UpdateAllOTRExceptionsViewsFromModel();
|
| - observer_.Add(profile->GetHostContentSettingsMap());
|
| - }
|
| break;
|
| }
|
|
|
|
|