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

Side by Side Diff: chrome/browser/ui/panels/panel_browsertest.cc

Issue 204703002: Rename NOTIFICATION_EXTENSION_UNLOADED to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: maybe upload wont do something bizarre this time Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/bind.h" 5 #include "base/bind.h"
6 #include "base/prefs/pref_service.h" 6 #include "base/prefs/pref_service.h"
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/app/chrome_command_ids.h" 8 #include "chrome/app/chrome_command_ids.h"
9 #include "chrome/browser/chrome_notification_types.h" 9 #include "chrome/browser/chrome_notification_types.h"
10 #include "chrome/browser/devtools/devtools_window.h" 10 #include "chrome/browser/devtools/devtools_window.h"
(...skipping 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after
1416 chrome::NOTIFICATION_PANEL_CLOSED, 1416 chrome::NOTIFICATION_PANEL_CLOSED,
1417 content::Source<Panel>(panel)); 1417 content::Source<Panel>(panel));
1418 content::WindowedNotificationObserver signal1( 1418 content::WindowedNotificationObserver signal1(
1419 chrome::NOTIFICATION_PANEL_CLOSED, 1419 chrome::NOTIFICATION_PANEL_CLOSED,
1420 content::Source<Panel>(panel1)); 1420 content::Source<Panel>(panel1));
1421 1421
1422 // Send unload notification on the first extension. 1422 // Send unload notification on the first extension.
1423 extensions::UnloadedExtensionInfo details( 1423 extensions::UnloadedExtensionInfo details(
1424 extension.get(), extensions::UnloadedExtensionInfo::REASON_UNINSTALL); 1424 extension.get(), extensions::UnloadedExtensionInfo::REASON_UNINSTALL);
1425 content::NotificationService::current()->Notify( 1425 content::NotificationService::current()->Notify(
1426 chrome::NOTIFICATION_EXTENSION_UNLOADED, 1426 chrome::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED,
1427 content::Source<Profile>(browser()->profile()), 1427 content::Source<Profile>(browser()->profile()),
1428 content::Details<extensions::UnloadedExtensionInfo>(&details)); 1428 content::Details<extensions::UnloadedExtensionInfo>(&details));
1429 1429
1430 // Wait for the panels opened by the first extension to close. 1430 // Wait for the panels opened by the first extension to close.
1431 signal.Wait(); 1431 signal.Wait();
1432 signal1.Wait(); 1432 signal1.Wait();
1433 1433
1434 // Verify that the panel that's left is the panel from the second extension. 1434 // Verify that the panel that's left is the panel from the second extension.
1435 EXPECT_EQ(panel_other, panel_manager->panels()[0]); 1435 EXPECT_EQ(panel_other, panel_manager->panels()[0]);
1436 panel_other->Close(); 1436 panel_other->Close();
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
1781 #else 1781 #else
1782 #define MAYBE_FocusChangeEventOnMinimize FocusChangeEventOnMinimize 1782 #define MAYBE_FocusChangeEventOnMinimize FocusChangeEventOnMinimize
1783 #endif 1783 #endif
1784 IN_PROC_BROWSER_TEST_F(PanelExtensionApiTest, 1784 IN_PROC_BROWSER_TEST_F(PanelExtensionApiTest,
1785 MAYBE_FocusChangeEventOnMinimize) { 1785 MAYBE_FocusChangeEventOnMinimize) {
1786 // This is needed so the subsequently created panels can be activated. 1786 // This is needed so the subsequently created panels can be activated.
1787 // On a Mac, it transforms background-only test process into foreground one. 1787 // On a Mac, it transforms background-only test process into foreground one.
1788 ASSERT_TRUE(ui_test_utils::BringBrowserWindowToFront(browser())); 1788 ASSERT_TRUE(ui_test_utils::BringBrowserWindowToFront(browser()));
1789 ASSERT_TRUE(RunExtensionTest("panels/focus_change_on_minimize")) << message_; 1789 ASSERT_TRUE(RunExtensionTest("panels/focus_change_on_minimize")) << message_;
1790 } 1790 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel.cc ('k') | chrome/browser/ui/views/location_bar/location_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698