diff options
author | kalman <kalman@chromium.org> | 2015-07-16 20:06:10 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-17 03:06:56 +0000 |
commit | fc1d836f35241e142113501939e0451442b56cf5 (patch) | |
tree | 6c69c60adb6191f20051b756a1b49bdf0cb06158 /extensions/browser/api/printer_provider | |
parent | c80439505fdc9e9719d5451f93ab45fc22cbb4b3 (diff) | |
download | chromium_src-fc1d836f35241e142113501939e0451442b56cf5.zip chromium_src-fc1d836f35241e142113501939e0451442b56cf5.tar.gz chromium_src-fc1d836f35241e142113501939e0451442b56cf5.tar.bz2 |
Fourth batch adding real histogram values for extension events.
This is the last batch of trivial replacements of the form
DispatchEvent(kFooEvent) --> DispatchEvent(events::FOO_EVENT, kFooEvent).
The remaining 15 or so files are less trivial, but there are only 15.
BUG=503402
R=rdevlin.cronin@chromium.org, isherman@chromium.org
Review URL: https://codereview.chromium.org/1240913002
Cr-Commit-Position: refs/heads/master@{#339209}
Diffstat (limited to 'extensions/browser/api/printer_provider')
-rw-r--r-- | extensions/browser/api/printer_provider/printer_provider_api.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/extensions/browser/api/printer_provider/printer_provider_api.cc b/extensions/browser/api/printer_provider/printer_provider_api.cc index 5b8be0f..82e3f31 100644 --- a/extensions/browser/api/printer_provider/printer_provider_api.cc +++ b/extensions/browser/api/printer_provider/printer_provider_api.cc @@ -527,7 +527,7 @@ void PrinterProviderAPIImpl::DispatchGetPrintersRequested( internal_args->AppendInteger(request_id); scoped_ptr<Event> event( - new Event(events::UNKNOWN, + new Event(events::PRINTER_PROVIDER_ON_GET_PRINTERS_REQUESTED, core_api::printer_provider::OnGetPrintersRequested::kEventName, internal_args.Pass())); // This callback is called synchronously during |BroadcastEvent|, so @@ -566,7 +566,7 @@ void PrinterProviderAPIImpl::DispatchGetCapabilityRequested( internal_args->AppendString(internal_printer_id); scoped_ptr<Event> event(new Event( - events::UNKNOWN, + events::PRINTER_PROVIDER_ON_GET_CAPABILITY_REQUESTED, core_api::printer_provider::OnGetCapabilityRequested::kEventName, internal_args.Pass())); @@ -614,9 +614,10 @@ void PrinterProviderAPIImpl::DispatchPrintRequested( // custom bindings. internal_args->AppendInteger(request_id); internal_args->Append(print_job.ToValue().release()); - scoped_ptr<Event> event(new Event( - events::UNKNOWN, core_api::printer_provider::OnPrintRequested::kEventName, - internal_args.Pass())); + scoped_ptr<Event> event( + new Event(events::PRINTER_PROVIDER_ON_PRINT_REQUESTED, + core_api::printer_provider::OnPrintRequested::kEventName, + internal_args.Pass())); event_router->DispatchEventToExtension(extension_id, event.Pass()); } @@ -655,7 +656,7 @@ void PrinterProviderAPIImpl::DispatchGetUsbPrinterInfoRequested( internal_args->AppendInteger(request_id); internal_args->Append(usb_device.ToValue().release()); scoped_ptr<Event> event(new Event( - events::UNKNOWN, + events::PRINTER_PROVIDER_ON_GET_USB_PRINTER_INFO_REQUESTED, core_api::printer_provider::OnGetUsbPrinterInfoRequested::kEventName, internal_args.Pass())); event_router->DispatchEventToExtension(extension_id, event.Pass()); |