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

Side by Side Diff: chrome/browser/extensions/api/management/management_api.cc

Issue 11232066: Remove GetExtensionEventRouter from Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rerebase Created 8 years, 1 month 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 "chrome/browser/extensions/api/management/management_api.h" 5 #include "chrome/browser/extensions/api/management/management_api.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 details)->extension; 640 details)->extension;
641 } else { 641 } else {
642 extension = content::Details<const Extension>(details).ptr(); 642 extension = content::Details<const Extension>(details).ptr();
643 } 643 }
644 CHECK(extension); 644 CHECK(extension);
645 scoped_ptr<management::ExtensionInfo> info = CreateExtensionInfo( 645 scoped_ptr<management::ExtensionInfo> info = CreateExtensionInfo(
646 *extension, ExtensionSystem::Get(profile)); 646 *extension, ExtensionSystem::Get(profile));
647 args->Append(info->ToValue().release()); 647 args->Append(info->ToValue().release());
648 } 648 }
649 649
650 profile->GetExtensionEventRouter()->DispatchEventToRenderers( 650 extensions::ExtensionSystem::Get(profile)->event_router()->
651 event_name, args.Pass(), NULL, GURL(), extensions::EventFilteringInfo()); 651 DispatchEventToRenderers(event_name, args.Pass(), NULL, GURL(),
652 extensions::EventFilteringInfo());
652 } 653 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698