| Index: chrome/browser/intents/native_services.cc
|
| diff --git a/chrome/browser/intents/native_services.cc b/chrome/browser/intents/native_services.cc
|
| index 7ed96868ad216713e7e338a097ef47d09bd71efe..c5f9062f6dc5694ea38189aafe406c8d17855b76 100644
|
| --- a/chrome/browser/intents/native_services.cc
|
| +++ b/chrome/browser/intents/native_services.cc
|
| @@ -29,7 +29,6 @@ void NativeServiceRegistry::GetSupportedServices(
|
| switches::kWebIntentsNativeServicesEnabled))
|
| return;
|
|
|
| -#if defined(TOOLKIT_VIEWS)
|
| if (EqualsASCII(action, web_intents::kActionPick)) {
|
| // File picker registrations.
|
| webkit_glue::WebIntentServiceData service(
|
| @@ -42,20 +41,18 @@ void NativeServiceRegistry::GetSupportedServices(
|
|
|
| services->push_back(service);
|
| }
|
| -#endif
|
| }
|
|
|
| NativeServiceFactory::NativeServiceFactory() {}
|
|
|
| IntentServiceHost* NativeServiceFactory::CreateServiceInstance(
|
| const GURL& service_url,
|
| - const webkit_glue::WebIntentData& intent) {
|
| + const webkit_glue::WebIntentData& intent,
|
| + content::WebContents* web_contents) {
|
|
|
| -#if defined(TOOLKIT_VIEWS)
|
| if (service_url.spec() == kNativeFilePickerUrl) {
|
| - return FilePickerFactory::CreateServiceInstance(intent);
|
| + return FilePickerFactory::CreateServiceInstance(web_contents, intent);
|
| }
|
| -#endif
|
|
|
| return NULL; // couldn't create instance
|
| }
|
|
|