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

Unified Diff: chrome/browser/extensions/menu_manager_unittest.cc

Issue 10941003: Reset registered events and dispatch runtime.onInstalled to all extensions when (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ? Created 8 years, 3 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: chrome/browser/extensions/menu_manager_unittest.cc
diff --git a/chrome/browser/extensions/menu_manager_unittest.cc b/chrome/browser/extensions/menu_manager_unittest.cc
index 626191f852c65ea9e36c1609421d6bd012dec80e..fc6049da9564bd4745f44664bde84d9d1f01b964 100644
--- a/chrome/browser/extensions/menu_manager_unittest.cc
+++ b/chrome/browser/extensions/menu_manager_unittest.cc
@@ -437,8 +437,7 @@ TEST_F(MenuManagerTest, ExtensionUnloadRemovesMenuItems) {
// A mock message service for tests of MenuManager::ExecuteCommand.
class MockEventRouter : public EventRouter {
public:
- explicit MockEventRouter(Profile* profile) :
- EventRouter(profile) {}
+ explicit MockEventRouter(Profile* profile) : EventRouter(profile, NULL) {}
MOCK_METHOD6(DispatchEventToExtensionMock,
void(const std::string& extension_id,
@@ -527,8 +526,7 @@ TEST_F(MenuManagerTest, RemoveOneByOne) {
TEST_F(MenuManagerTest, ExecuteCommand) {
MockTestingProfile profile;
- scoped_ptr<MockEventRouter> mock_event_router(
- new MockEventRouter(&profile));
+ scoped_ptr<MockEventRouter> mock_event_router(new MockEventRouter(&profile));
content::ContextMenuParams params;
params.media_type = WebKit::WebContextMenuData::MediaTypeImage;

Powered by Google App Engine
This is Rietveld 408576698