Fix incognito mode extension toolbar bug
commitb6b3b4868dba982a327421a3c5c9f4cd020cbb61
authorrdevlin.cronin <rdevlin.cronin@chromium.org>
Wed, 29 Oct 2014 19:29:40 +0000 (29 12:29 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 29 Oct 2014 19:30:00 +0000 (29 19:30 +0000)
tree1b4de24be0ea2a77bca093bcab261fff5d75f3ef
parentdfdbef0cb82cbb4e49d5c38e7985096d10acf0c4
Fix incognito mode extension toolbar bug

There's a bug where, if an incognito window is open, extensions that are then
enabled in incognito are overflowed by default. Fix this by adding extra logic
to ExtensionToolbarModel::AddExtension() to make sure the overflow status
matches the main model's.

BUG=427450

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

Cr-Commit-Position: refs/heads/master@{#301908}
chrome/browser/extensions/extension_toolbar_model.cc
chrome/browser/extensions/extension_toolbar_model_unittest.cc
chrome/chrome_tests.gypi
chrome/chrome_tests_unit.gypi
extensions/extensions.gyp