Index: components/autofill/content/browser/autofill_driver_impl.cc |
diff --git a/components/autofill/content/browser/autofill_driver_impl.cc b/components/autofill/content/browser/autofill_driver_impl.cc |
index b6d7cbc70d2a0036b8a16ee5bf19d76f58c94042..2e1fa82cb1b24ba445b0a2f5216995bb043b9914 100644 |
--- a/components/autofill/content/browser/autofill_driver_impl.cc |
+++ b/components/autofill/content/browser/autofill_driver_impl.cc |
@@ -116,7 +116,7 @@ void AutofillDriverImpl::SendFormDataToRenderer(int query_id, |
void AutofillDriverImpl::SendAutofillTypePredictionsToRenderer( |
const std::vector<FormStructure*>& forms) { |
- if (!CommandLine::ForCurrentProcess()->HasSwitch( |
+ if (!RendererIsAvailable() || !CommandLine::ForCurrentProcess()->HasSwitch( |
switches::kShowAutofillTypePredictions)) |
return; |
Ilya Sherman
2014/03/03 23:07:34
Please reformat this like so:
if (!CommandLine::F
spartha
2014/03/04 16:24:40
Done.
|