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

Unified Diff: athena/content/app_activity.cc

Issue 513523002: Adding Baseframework of the ResourceManager (all hooks and observers) are being put in place with a… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Odd - DEPS files are not shown by git status. Added. Created 6 years, 4 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
Index: athena/content/app_activity.cc
diff --git a/athena/content/app_activity.cc b/athena/content/app_activity.cc
index 7dcad7eea683553f26e8e4d6fbd5d24e42fc5e6e..6eb469fb081c3fb83cf47688fee9ac5dfe688d1d 100644
--- a/athena/content/app_activity.cc
+++ b/athena/content/app_activity.cc
@@ -9,6 +9,7 @@
#include "athena/content/public/app_content_control_delegate.h"
#include "athena/content/public/app_registry.h"
#include "content/public/browser/web_contents.h"
+#include "ui/aura/window.h"
#include "ui/views/controls/webview/webview.h"
#include "ui/views/widget/widget.h"
@@ -81,7 +82,11 @@ Activity::ActivityState AppActivity::GetCurrentState() {
}
bool AppActivity::IsVisible() {
- return web_view_ && web_view_->IsDrawn();
+ return web_view_ &&
+ web_view_->IsDrawn() &&
+ current_state_ != ACTIVITY_UNLOADED &&
+ GetWindow() &&
+ GetWindow()->IsVisible();
}
Activity::ActivityMediaState AppActivity::GetMediaState() {

Powered by Google App Engine
This is Rietveld 408576698