| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/views/controls/webview/webview.h" | 5 #include "ui/views/controls/webview/webview.h" |
| 6 | 6 |
| 7 #include "content/public/browser/browser_context.h" | 7 #include "content/public/browser/browser_context.h" |
| 8 #include "content/public/browser/navigation_controller.h" | 8 #include "content/public/browser/navigation_controller.h" |
| 9 #include "content/public/browser/notification_details.h" | 9 #include "content/public/browser/notification_details.h" |
| 10 #include "content/public/browser/notification_registrar.h" | 10 #include "content/public/browser/notification_registrar.h" |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 content::WebContents* contents = NULL; | 243 content::WebContents* contents = NULL; |
| 244 if (ViewsDelegate::views_delegate) { | 244 if (ViewsDelegate::views_delegate) { |
| 245 contents = ViewsDelegate::views_delegate->CreateWebContents( | 245 contents = ViewsDelegate::views_delegate->CreateWebContents( |
| 246 browser_context, site_instance); | 246 browser_context, site_instance); |
| 247 } | 247 } |
| 248 | 248 |
| 249 if (!contents) { | 249 if (!contents) { |
| 250 return content::WebContents::Create(browser_context, | 250 return content::WebContents::Create(browser_context, |
| 251 site_instance, | 251 site_instance, |
| 252 MSG_ROUTING_NONE, | 252 MSG_ROUTING_NONE, |
| 253 NULL, | |
| 254 NULL); | 253 NULL); |
| 255 } | 254 } |
| 256 | 255 |
| 257 return contents; | 256 return contents; |
| 258 } | 257 } |
| 259 | 258 |
| 260 } // namespace views | 259 } // namespace views |
| OLD | NEW |