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

Unified Diff: athena/content/content_proxy.cc

Issue 631333003: Adding application lifetime tests to athena, allowing to override focus request for applciations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 2 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 | « athena/content/app_activity_proxy.cc ('k') | athena/extensions/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/content/content_proxy.cc
diff --git a/athena/content/content_proxy.cc b/athena/content/content_proxy.cc
index 121d7ad2011359d78c642deef8a8a667da26dbd9..f2a2f137a9f2c18cd8beef70aeab7493d88c953e 100644
--- a/athena/content/content_proxy.cc
+++ b/athena/content/content_proxy.cc
@@ -144,7 +144,10 @@ void ContentProxy::CreateProxyContent() {
content::RenderViewHost* host =
web_view_->GetWebContents()->GetRenderViewHost();
- DCHECK(host && host->GetView());
+ DCHECK(host);
+ // A never fully initialized content can come here with no view.
+ if (!host->GetView())
+ return;
gfx::Size source = host->GetView()->GetViewBounds().size();
gfx::Size target = gfx::Size(source.width() / 2, source.height() / 2);
host->CopyFromBackingStore(
« no previous file with comments | « athena/content/app_activity_proxy.cc ('k') | athena/extensions/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698