Chromium Code Reviews| Index: components/web_contents_delegate_android/web_contents_delegate_android.cc |
| diff --git a/components/web_contents_delegate_android/web_contents_delegate_android.cc b/components/web_contents_delegate_android/web_contents_delegate_android.cc |
| index 386ca7579147339aad8715a19a6c2c0b7bcbb620..27db4505959f2fd93f7a268e8f6427a22ca97661 100644 |
| --- a/components/web_contents_delegate_android/web_contents_delegate_android.cc |
| +++ b/components/web_contents_delegate_android/web_contents_delegate_android.cc |
| @@ -58,6 +58,11 @@ ColorChooser* WebContentsDelegateAndroid::OpenColorChooser( |
| WebContents* source, |
| SkColor color, |
| const std::vector<content::ColorSuggestion>& suggestions) { |
| + if (source->GetRenderWidgetHostView()->IsInVR()) { |
|
boliu
2017/03/06 22:38:10
instead of this check, make sure content doesn't c
|
| + // TODO(billorr): Add VR color chooser support. See crbug.com/661243. |
| + NOTIMPLEMENTED(); |
|
mthiesse
2017/02/08 18:27:57
I don't think we actually want NOTIMPLEMENTED() he
mthiesse
2017/02/08 18:29:12
Nevermind the crashes point, I see that it either
billorr
2017/02/08 19:02:46
I was on the fence about adding it. I figured the
mthiesse
2017/02/08 19:24:46
It's somewhat harmful, strings are a large contrib
amp
2017/02/08 19:31:40
Policy on Android official builds seems to be to s
|
| + return nullptr; |
| + } |
| return new ColorChooserAndroid(source, color, suggestions); |
| } |