summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authormazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-26 17:15:13 +0000
committermazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-26 17:15:13 +0000
commit026db01f4ebf09494bb1f59e7b17f5b14919744f (patch)
treee31cec5d7e6cef76bad552e32ca2114dca003a73 /ui
parent614d18c2958bf33c93d6d9265870c31312ceb72d (diff)
downloadchromium_src-026db01f4ebf09494bb1f59e7b17f5b14919744f.zip
chromium_src-026db01f4ebf09494bb1f59e7b17f5b14919744f.tar.gz
chromium_src-026db01f4ebf09494bb1f59e7b17f5b14919744f.tar.bz2
Fix a crash of WebView in ash_shell on Chrome OS build.
BUG=125063 TEST=Checked WebView example doesn't crash Review URL: http://codereview.chromium.org/10191031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134116 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r--ui/views/examples/webview_example.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/ui/views/examples/webview_example.cc b/ui/views/examples/webview_example.cc
index 55ae0af..79cd7ab 100644
--- a/ui/views/examples/webview_example.cc
+++ b/ui/views/examples/webview_example.cc
@@ -29,11 +29,7 @@ void WebViewExample::CreateExampleView(View* container) {
container->SetLayoutManager(new FillLayout);
container->AddChildView(webview_);
- webview_->web_contents()->GetController().LoadURL(
- GURL("http://www.google.com/"),
- content::Referrer(),
- content::PAGE_TRANSITION_TYPED,
- std::string());
+ webview_->LoadInitialURL(GURL("http://www.google.com/"));
webview_->web_contents()->Focus();
}