diff options
Diffstat (limited to 'chrome/browser/instant')
-rw-r--r-- | chrome/browser/instant/instant_controller.cc | 7 | ||||
-rw-r--r-- | chrome/browser/instant/instant_controller.h | 2 | ||||
-rw-r--r-- | chrome/browser/instant/instant_loader.cc | 3 |
3 files changed, 7 insertions, 5 deletions
diff --git a/chrome/browser/instant/instant_controller.cc b/chrome/browser/instant/instant_controller.cc index 676b7e0..0c2bb6e 100644 --- a/chrome/browser/instant/instant_controller.cc +++ b/chrome/browser/instant/instant_controller.cc @@ -18,6 +18,7 @@ #include "chrome/browser/profiles/profile.h" #include "chrome/browser/search_engines/template_url.h" #include "chrome/browser/search_engines/template_url_model.h" +#include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h" #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" #include "chrome/common/chrome_switches.h" #include "chrome/common/pref_names.h" @@ -260,7 +261,7 @@ void InstantController::CommitCurrentPreview(InstantCommitType type) { tab->controller().CopyStateFromAndPrune( &tab_contents_->controller(), showing_instant); delegate_->CommitInstant(tab); - CompleteRelease(tab->tab_contents()); + CompleteRelease(tab); } void InstantController::SetCommitOnMouseUp() { @@ -382,8 +383,8 @@ TabContentsWrapper* InstantController::ReleasePreviewContents( return tab; } -void InstantController::CompleteRelease(TabContents* tab) { - tab->SetAllContentsBlocked(false); +void InstantController::CompleteRelease(TabContentsWrapper* tab) { + tab->blocked_content_tab_helper()->SetAllContentsBlocked(false); } TabContentsWrapper* InstantController::GetPreviewContents() { diff --git a/chrome/browser/instant/instant_controller.h b/chrome/browser/instant/instant_controller.h index da47d11..0352dfe 100644 --- a/chrome/browser/instant/instant_controller.h +++ b/chrome/browser/instant/instant_controller.h @@ -130,7 +130,7 @@ class InstantController : public InstantLoaderDelegate { // Does cleanup after the preview contents has been added to the tabstrip. // Invoke this if you explicitly invoke ReleasePreviewContents. - void CompleteRelease(TabContents* tab); + void CompleteRelease(TabContentsWrapper* tab); // TabContents the match is being shown for. TabContentsWrapper* tab_contents() const { return tab_contents_; } diff --git a/chrome/browser/instant/instant_loader.cc b/chrome/browser/instant/instant_loader.cc index c9ac786..6616b48 100644 --- a/chrome/browser/instant/instant_loader.cc +++ b/chrome/browser/instant/instant_loader.cc @@ -19,6 +19,7 @@ #include "chrome/browser/instant/instant_loader_delegate.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/search_engines/template_url.h" +#include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h" #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" #include "chrome/common/chrome_switches.h" #include "chrome/common/render_messages.h" @@ -974,7 +975,7 @@ void InstantLoader::CreatePreviewContents(TabContentsWrapper* tab_contents) { new TabContents( tab_contents->profile(), NULL, MSG_ROUTING_NONE, NULL, NULL); preview_contents_.reset(new TabContentsWrapper(new_contents)); - new_contents->SetAllContentsBlocked(true); + preview_contents_->blocked_content_tab_helper()->SetAllContentsBlocked(true); // Propagate the max page id. That way if we end up merging the two // NavigationControllers (which happens if we commit) none of the page ids // will overlap. |