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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 237533008: Refactor GuestView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | chrome/browser/guestview/adview/adview_guest.h » ('j') | chrome/browser/guestview/guestview.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index d0ed882ecb652a9a62a4789c3e880ff8bdc3f9d3..7052a0e9d2c9cb5b659230b1b22fcde8b984e5d8 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -838,7 +838,8 @@ void ChromeContentBrowserClient::GuestWebContentsCreated(
/// TODO(fsamuel): In the future, certain types of GuestViews won't require
// extension bindings. At that point, we should clear |extension_id| instead
// of exiting early.
- if (!service->GetExtensionById(extension_id, false) &&
+ if (!extension_id.empty() &&
+ !service->GetExtensionById(extension_id, false) &&
!CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableBrowserPluginForAllViewTypes)) {
NOTREACHED();
« no previous file with comments | « no previous file | chrome/browser/guestview/adview/adview_guest.h » ('j') | chrome/browser/guestview/guestview.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698