| 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..f475b8efac28ab44ff0cc8ded72b38a3743c4f8c 100644
|
| --- a/chrome/browser/intents/native_services.cc
|
| +++ b/chrome/browser/intents/native_services.cc
|
| @@ -29,7 +29,7 @@ void NativeServiceRegistry::GetSupportedServices(
|
| switches::kWebIntentsNativeServicesEnabled))
|
| return;
|
|
|
| -#if defined(TOOLKIT_VIEWS)
|
| +#if !defined(ANDROID)
|
| if (EqualsASCII(action, web_intents::kActionPick)) {
|
| // File picker registrations.
|
| webkit_glue::WebIntentServiceData service(
|
| @@ -49,11 +49,12 @@ 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 !defined(ANDROID)
|
| if (service_url.spec() == kNativeFilePickerUrl) {
|
| - return FilePickerFactory::CreateServiceInstance(intent);
|
| + return FilePickerFactory::CreateServiceInstance(intent, web_contents);
|
| }
|
| #endif
|
|
|
|
|