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

Side by Side Diff: chrome/browser/ui/app_list/launcher_page_event_dispatcher.cc

Issue 1201063002: Set up the infrastructure for Extension event metrics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaaaaase Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/ui/app_list/launcher_page_event_dispatcher.h" 5 #include "chrome/browser/ui/app_list/launcher_page_event_dispatcher.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/common/extensions/api/launcher_page.h" 9 #include "chrome/common/extensions/api/launcher_page.h"
10 #include "extensions/browser/event_router.h" 10 #include "extensions/browser/event_router.h"
(...skipping 18 matching lines...) Expand all
29 OnTransitionChanged::Create(progress)); 29 OnTransitionChanged::Create(progress));
30 } 30 }
31 31
32 void LauncherPageEventDispatcher::PopSubpage() { 32 void LauncherPageEventDispatcher::PopSubpage() {
33 SendEventToLauncherPage(OnPopSubpage::kEventName, OnPopSubpage::Create()); 33 SendEventToLauncherPage(OnPopSubpage::kEventName, OnPopSubpage::Create());
34 } 34 }
35 35
36 void LauncherPageEventDispatcher::SendEventToLauncherPage( 36 void LauncherPageEventDispatcher::SendEventToLauncherPage(
37 const std::string& event_name, 37 const std::string& event_name,
38 scoped_ptr<base::ListValue> args) { 38 scoped_ptr<base::ListValue> args) {
39 scoped_ptr<extensions::Event> event( 39 scoped_ptr<extensions::Event> event(new extensions::Event(
40 new extensions::Event(event_name, args.Pass())); 40 extensions::events::UNKNOWN, event_name, args.Pass()));
41 extensions::EventRouter::Get(profile_) 41 extensions::EventRouter::Get(profile_)
42 ->DispatchEventToExtension(extension_id_, event.Pass()); 42 ->DispatchEventToExtension(extension_id_, event.Pass());
43 } 43 }
44 44
45 } // namespace app_list 45 } // namespace app_list
OLDNEW
« no previous file with comments | « chrome/browser/speech/extension_api/tts_extension_api.cc ('k') | chrome/browser/ui/app_list/search/people/people_result.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698