Commit 948e166b authored by mmocny@chromium.org's avatar mmocny@chromium.org

RenderWidgetHost::WasHidden is called twice on each tab switch on Aura.


TabContentsContainer::ChangeWebContent was calling native_container_->DetachContents then eventually calls RWH->WasHidden(), so there is no need to call it explicitly a second time.


BUG=110645
TEST=Manual

Review URL: http://codereview.chromium.org/9243013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128248 0039d316-1c4b-4281-b951-d872f2087c98
parent ffbf92d3
......@@ -37,7 +37,6 @@ TabContentsContainer::~TabContentsContainer() {
void TabContentsContainer::ChangeWebContents(WebContents* contents) {
if (web_contents_) {
native_container_->DetachContents(web_contents_);
web_contents_->WasHidden();
RemoveObservers();
}
web_contents_ = contents;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment