Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(932)

Unified Diff: extensions/renderer/dispatcher.cc

Issue 1220813003: Fix flakiness and re-enable FormAutocompleteTest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: check null Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/autofill/form_autocomplete_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/dispatcher.cc
diff --git a/extensions/renderer/dispatcher.cc b/extensions/renderer/dispatcher.cc
index 4351b22cc2bff7341a700543ea31b98dc910c69f..c6504e79156631eb8a7e88412d95935cb108a936 100644
--- a/extensions/renderer/dispatcher.cc
+++ b/extensions/renderer/dispatcher.cc
@@ -361,15 +361,19 @@ void Dispatcher::DidCreateDocumentElement(blink::WebFrame* frame) {
.as_string()));
}
- content_watcher_->DidCreateDocumentElement(frame);
+ if (content_watcher_) {
not at google - send to devlin 2015/07/06 16:32:46 Comment here and below, // This can happen if the
kouhei (in TOK) 2015/07/07 00:00:29 ack
not at google - send to devlin 2015/07/07 19:55:51 Alright, let's go with what you have and contrary
kouhei (in TOK) 2015/07/08 09:23:32 Done.
+ content_watcher_->DidCreateDocumentElement(frame);
+ }
}
void Dispatcher::DidMatchCSS(
blink::WebFrame* frame,
const blink::WebVector<blink::WebString>& newly_matching_selectors,
const blink::WebVector<blink::WebString>& stopped_matching_selectors) {
- content_watcher_->DidMatchCSS(
- frame, newly_matching_selectors, stopped_matching_selectors);
+ if (content_watcher_) {
+ content_watcher_->DidMatchCSS(
+ frame, newly_matching_selectors, stopped_matching_selectors);
+ }
}
void Dispatcher::OnExtensionResponse(int request_id,
« no previous file with comments | « chrome/renderer/autofill/form_autocomplete_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698