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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 9956154: TabContents -> WebContentsImpl, part 16 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 8 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
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 0c5d55bad251e0ca5f6800f51a1a094b18c3aea3..8cf33aa3b8d1d32439b95b87e651411162c720f2 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -276,7 +276,7 @@ WebContentsImpl::WebContentsImpl(
static_cast<int>(content::kMaximumZoomFactor * 100)),
temporary_zoom_settings_(false),
content_restrictions_(0),
- view_type_(content::VIEW_TYPE_TAB_CONTENTS),
+ view_type_(content::VIEW_TYPE_WEB_CONTENTS),
has_opener_(false),
color_chooser_(NULL) {
render_manager_.Init(browser_context, site_instance, routing_id);
@@ -302,8 +302,8 @@ WebContentsImpl::WebContentsImpl(
}
CHECK(view_.get());
- // We have the initial size of the view be based on the size of the passed in
- // tab contents (normally a tab from the same window).
+ // We have the initial size of the view be based on the size of the view of
+ // the passed in WebContents.
view_->CreateView(base_web_contents ?
base_web_contents->GetView()->GetContainerSize() : gfx::Size());
@@ -328,7 +328,7 @@ WebContentsImpl::~WebContentsImpl() {
NotifyDisconnected();
- // Notify any observer that have a reference on this tab contents.
+ // Notify any observer that have a reference on this WebContents.
content::NotificationService::current()->Notify(
content::NOTIFICATION_WEB_CONTENTS_DESTROYED,
content::Source<WebContents>(this),
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/browser/web_contents/web_contents_view_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698