summaryrefslogtreecommitdiffstats
path: root/content/shell/shell_win.cc
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-26 21:29:32 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-26 21:29:32 +0000
commit0b659b3aa968760adac676083477cadaaf3c7433 (patch)
tree9c0c0ad3b2d309772829460911893daa06279a5f /content/shell/shell_win.cc
parent2b195f45f0a6e08ae2b694bf74dbfd409443f35b (diff)
downloadchromium_src-0b659b3aa968760adac676083477cadaaf3c7433.zip
chromium_src-0b659b3aa968760adac676083477cadaaf3c7433.tar.gz
chromium_src-0b659b3aa968760adac676083477cadaaf3c7433.tar.bz2
Content shell: Use only public API.
BUG=119869 TEST=none Review URL: https://chromiumcodereview.appspot.com/9834092 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129010 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell/shell_win.cc')
-rw-r--r--content/shell/shell_win.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/content/shell/shell_win.cc b/content/shell/shell_win.cc
index 47419ee..20fe1a0 100644
--- a/content/shell/shell_win.cc
+++ b/content/shell/shell_win.cc
@@ -11,7 +11,7 @@
#include "base/string_piece.h"
#include "base/utf_string_conversions.h"
#include "base/win/resource_util.h"
-#include "content/browser/tab_contents/tab_contents.h"
+#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_view.h"
#include "content/shell/resource.h"
#include "googleurl/src/gurl.h"
@@ -148,7 +148,7 @@ void Shell::PlatformCreateWindow(int width, int height) {
}
void Shell::PlatformSetContents() {
- SetParent(tab_contents_->GetView()->GetNativeView(), window_);
+ SetParent(web_contents_->GetView()->GetNativeView(), window_);
}
void Shell::SizeTo(int width, int height) {
@@ -210,7 +210,7 @@ LRESULT CALLBACK Shell::WndProc(HWND hwnd, UINT message, WPARAM wParam,
switch (id) {
case IDM_NEW_WINDOW:
CreateNewWindow(
- shell->tab_contents()->GetBrowserContext(),
+ shell->web_contents()->GetBrowserContext(),
GURL(), NULL, MSG_ROUTING_NONE, NULL);
break;
case IDM_CLOSE_WINDOW: