Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1712)

Unified Diff: content/browser/tab_contents/tab_contents_delegate.cc

Issue 7241021: Revert 90359 - Helper functions for tracking stale TabContentsDelegate's. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/tab_contents/tab_contents_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tab_contents/tab_contents_delegate.cc
===================================================================
--- content/browser/tab_contents/tab_contents_delegate.cc (revision 90360)
+++ content/browser/tab_contents/tab_contents_delegate.cc (working copy)
@@ -5,15 +5,11 @@
#include "content/browser/tab_contents/tab_contents_delegate.h"
#include "base/compiler_specific.h"
-#include "base/logging.h"
#include "base/memory/singleton.h"
#include "content/browser/javascript_dialogs.h"
#include "content/common/url_constants.h"
#include "ui/gfx/rect.h"
-TabContentsDelegate::TabContentsDelegate() {
-}
-
std::string TabContentsDelegate::GetNavigationHeaders(const GURL& url) {
return std::string();
}
@@ -238,15 +234,4 @@
}
TabContentsDelegate::~TabContentsDelegate() {
- CHECK(attached_contents_.empty());
}
-
-void TabContentsDelegate::Attach(TabContents* tab_contents) {
- CHECK(attached_contents_.find(tab_contents) == attached_contents_.end());
- attached_contents_.insert(tab_contents);
-}
-
-void TabContentsDelegate::Detach(TabContents* tab_contents) {
- CHECK(attached_contents_.find(tab_contents) != attached_contents_.end());
- attached_contents_.erase(tab_contents);
-}
« no previous file with comments | « content/browser/tab_contents/tab_contents_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698