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

Unified Diff: athena/content/app_activity.cc

Issue 683463002: Do not call StackWindowFrontOf() when the AppActivity's window is already at the top (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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/content/app_activity.cc
diff --git a/athena/content/app_activity.cc b/athena/content/app_activity.cc
index 503e564aca1749465ab120ce4da127d4ae5dc424..f5c2866514729c708f0512f9e18d0f6347dbd08a 100644
--- a/athena/content/app_activity.cc
+++ b/athena/content/app_activity.cc
@@ -120,9 +120,11 @@ void AppActivity::Init() {
// proxy the activation will change to the next (activatable) object and
// thus we have to move the window in front at the end.
Activity::Delete(app_proxy);
- window_list_provider->StackWindowFrontOf(
- GetWindow(),
- window_list_provider->GetWindowList().back());
+ if (GetWindow() != window_list_provider->GetWindowList().back()) {
+ window_list_provider->StackWindowFrontOf(
+ GetWindow(),
+ window_list_provider->GetWindowList().back());
+ }
} else {
// The app window goes in front of the proxy window (we need to first
// place the window before we can delete it).
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698