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

Side by Side Diff: chrome/browser/extensions/extension_management_api.cc

Issue 10514013: Filtered events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: split out event_filter changes Created 8 years, 6 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 "chrome/browser/extensions/extension_management_api.h" 5 #include "chrome/browser/extensions/extension_management_api.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 } 581 }
582 CHECK(extension); 582 CHECK(extension);
583 ExtensionService* service = profile->GetExtensionService(); 583 ExtensionService* service = profile->GetExtensionService();
584 args.Append(CreateExtensionInfo(*extension, service)); 584 args.Append(CreateExtensionInfo(*extension, service));
585 } 585 }
586 586
587 std::string args_json; 587 std::string args_json;
588 base::JSONWriter::Write(&args, &args_json); 588 base::JSONWriter::Write(&args, &args_json);
589 589
590 profile->GetExtensionEventRouter()->DispatchEventToRenderers( 590 profile->GetExtensionEventRouter()->DispatchEventToRenderers(
591 event_name, args_json, NULL, GURL()); 591 event_name, args_json, NULL, GURL(), EventFilteringInfo());
592 } 592 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698