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

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

Issue 137403005: Remove some code inside USE_AURA and OS_WIN ifdefs. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 11 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
===================================================================
--- content/browser/web_contents/web_contents_impl.cc (revision 244508)
+++ content/browser/web_contents/web_contents_impl.cc (working copy)
@@ -370,7 +370,7 @@
controller_(this, browser_context),
render_view_host_delegate_view_(NULL),
opener_(opener),
-#if defined(OS_WIN) && defined(USE_AURA)
+#if defined(OS_WIN)
accessible_parent_(NULL),
#endif
frame_tree_(new NavigatorImpl(&controller_, this),
@@ -430,17 +430,6 @@
Source<WebContents>(this),
NotificationService::NoDetails());
- // TODO(brettw) this should be moved to the view.
-#if defined(OS_WIN) && !defined(USE_AURA)
- // If we still have a window handle, destroy it. GetNativeView can return
- // NULL if this contents was part of a window that closed.
- if (view_->GetNativeView()) {
- RenderViewHost* host = GetRenderViewHost();
- if (host && host->GetView())
- RenderWidgetHostViewPort::FromRWHV(host->GetView())->WillWmDestroy();
- }
-#endif
-
RenderViewHost* pending_rvh = GetRenderManager()->pending_render_view_host();
if (pending_rvh) {
FOR_EACH_OBSERVER(WebContentsObserver,
@@ -776,7 +765,7 @@
return renderer_preferences_.user_agent_override;
}
-#if defined(OS_WIN) && defined(USE_AURA)
+#if defined(OS_WIN)
void WebContentsImpl::SetParentNativeViewAccessible(
gfx::NativeViewAccessible accessible_parent) {
accessible_parent_ = accessible_parent;
@@ -1248,7 +1237,7 @@
return false;
}
-#if defined(OS_WIN) && defined(USE_AURA)
+#if defined(OS_WIN)
gfx::NativeViewAccessible WebContentsImpl::GetParentNativeViewAccessible() {
return accessible_parent_;
}

Powered by Google App Engine
This is Rietveld 408576698