OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/stringprintf.h" | 5 #include "base/stringprintf.h" |
6 #include "base/utf_string_conversions.h" | 6 #include "base/strings/utf_string_conversions.h" |
7 #include "chrome/browser/background/background_contents_service.h" | 7 #include "chrome/browser/background/background_contents_service.h" |
8 #include "chrome/browser/background/background_contents_service_factory.h" | 8 #include "chrome/browser/background/background_contents_service_factory.h" |
9 #include "chrome/browser/background/background_mode_manager.h" | 9 #include "chrome/browser/background/background_mode_manager.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
11 #include "chrome/browser/extensions/extension_apitest.h" | 11 #include "chrome/browser/extensions/extension_apitest.h" |
12 #include "chrome/browser/extensions/extension_service.h" | 12 #include "chrome/browser/extensions/extension_service.h" |
13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
15 #include "chrome/browser/ui/browser_window.h" | 15 #include "chrome/browser/ui/browser_window.h" |
16 #include "chrome/common/chrome_notification_types.h" | 16 #include "chrome/common/chrome_notification_types.h" |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 // Close all browsers - app should continue running. | 487 // Close all browsers - app should continue running. |
488 SetExitWhenLastBrowserCloses(false); | 488 SetExitWhenLastBrowserCloses(false); |
489 CloseBrowser(browser()); | 489 CloseBrowser(browser()); |
490 | 490 |
491 // Post a task to unload the extension - this should cause Chrome to exit | 491 // Post a task to unload the extension - this should cause Chrome to exit |
492 // cleanly (not crash). | 492 // cleanly (not crash). |
493 UnloadExtensionViaTask(extension->id()); | 493 UnloadExtensionViaTask(extension->id()); |
494 content::RunAllPendingInMessageLoop(); | 494 content::RunAllPendingInMessageLoop(); |
495 ASSERT_TRUE(WaitForBackgroundMode(false)); | 495 ASSERT_TRUE(WaitForBackgroundMode(false)); |
496 } | 496 } |
OLD | NEW |