Index: trunk/src/chrome/browser/extensions/api/app_runtime/app_runtime_api.cc |
=================================================================== |
--- trunk/src/chrome/browser/extensions/api/app_runtime/app_runtime_api.cc (revision 222256) |
+++ trunk/src/chrome/browser/extensions/api/app_runtime/app_runtime_api.cc (working copy) |
@@ -61,8 +61,6 @@ |
Profile* profile, const Extension* extension, |
const std::string& handler_id, const std::string& mime_type, |
const extensions::app_file_handler_util::GrantedFileEntry& file_entry) { |
- // TODO(sergeygs): Use the same way of creating an event (using the generated |
- // boilerplate) as below in DispatchOnLaunchedEventWithUrl. |
scoped_ptr<base::ListValue> args(new base::ListValue()); |
base::DictionaryValue* launch_data = new base::DictionaryValue(); |
launch_data->SetString("id", handler_id); |
@@ -78,20 +76,4 @@ |
DispatchOnLaunchedEventImpl(extension->id(), args.Pass(), profile); |
} |
-// static. |
-void AppEventRouter::DispatchOnLaunchedEventWithUrl( |
- Profile* profile, |
- const Extension* extension, |
- const std::string& handler_id, |
- const GURL& url, |
- const GURL& referrer_url) { |
- api::app_runtime::LaunchData launch_data; |
- launch_data.id.reset(new std::string(handler_id)); |
- launch_data.url.reset(new std::string(url.spec())); |
- launch_data.referrer_url.reset(new std::string(referrer_url.spec())); |
- scoped_ptr<ListValue> args(new ListValue()); |
- args->Append(launch_data.ToValue().release()); |
- DispatchOnLaunchedEventImpl(extension->id(), args.Pass(), profile); |
-} |
- |
} // namespace extensions |