Listen to Off The Record profiles in ContentSettingsHandler.
commitcc12a6ab824a40524b5d046b8cd80253d19ff50f
authorscheib <scheib@chromium.org>
Mon, 27 Oct 2014 22:17:32 +0000 (27 15:17 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 27 Oct 2014 22:17:46 +0000 (27 22:17 +0000)
treedea8facff68d33466c378a227c16499fb0dce111
parent38a057dba61fc0f88a50715618ecbb1b78537d1a
Listen to Off The Record profiles in ContentSettingsHandler.

ContentSettingsHandler is now made aware of Off The Record profiles
and will observe them as well, correcting bugs where changes from the
settings webUI would function incorrectly.

This is a rework of a previously landed fix [fix] which was reverted due to
a crash bug [crash] when OTR profiles already existed before settings
were opened.

[fix] https://codereview.chromium.org/585953003
[crash] https://code.google.com/p/chromium/issues/detail?id=417597

BUG=425079, 418931

Committed: https://crrev.com/c9ba380c606442a025a38eb67f4d35c65b1a293c
Cr-Commit-Position: refs/heads/master@{#301273}

Review URL: https://codereview.chromium.org/676083003

Cr-Commit-Position: refs/heads/master@{#301461}
base/scoped_observer.h
chrome/browser/ui/webui/options/content_settings_handler.cc