| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "ash/public/cpp/shelf_item_delegate.h" | 5 #include "ash/public/cpp/shelf_item_delegate.h" |
| 6 #include "ash/shelf/shelf_model.h" | 6 #include "ash/public/cpp/shelf_model.h" |
| 7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "ash/wm/window_util.h" | 8 #include "ash/wm/window_util.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
| 12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 13 #include "chrome/browser/chromeos/arc/arc_auth_notification.h" | 13 #include "chrome/browser/chromeos/arc/arc_auth_notification.h" |
| 14 #include "chrome/browser/chromeos/arc/arc_service_launcher.h" | 14 #include "chrome/browser/chromeos/arc/arc_service_launcher.h" |
| 15 #include "chrome/browser/chromeos/arc/arc_session_manager.h" | 15 #include "chrome/browser/chromeos/arc/arc_session_manager.h" |
| 16 #include "chrome/browser/chromeos/arc/arc_util.h" | 16 #include "chrome/browser/chromeos/arc/arc_util.h" |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 app_host()->OnTaskDestroyed(2); | 523 app_host()->OnTaskDestroyed(2); |
| 524 EXPECT_EQ(delegate2, GetShelfItemDelegate(shelf_id2)); | 524 EXPECT_EQ(delegate2, GetShelfItemDelegate(shelf_id2)); |
| 525 // Destroy task #2, this kills shelf group 2 | 525 // Destroy task #2, this kills shelf group 2 |
| 526 app_host()->OnTaskDestroyed(3); | 526 app_host()->OnTaskDestroyed(3); |
| 527 EXPECT_FALSE(GetShelfItemDelegate(shelf_id2)); | 527 EXPECT_FALSE(GetShelfItemDelegate(shelf_id2)); |
| 528 | 528 |
| 529 // Disable ARC, this removes app and as result kills shelf group 3. | 529 // Disable ARC, this removes app and as result kills shelf group 3. |
| 530 arc::SetArcPlayStoreEnabledForProfile(profile(), false); | 530 arc::SetArcPlayStoreEnabledForProfile(profile(), false); |
| 531 EXPECT_FALSE(GetShelfItemDelegate(shelf_id3)); | 531 EXPECT_FALSE(GetShelfItemDelegate(shelf_id3)); |
| 532 } | 532 } |
| OLD | NEW |