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

Side by Side Diff: components/autofill/core/common/password_form.cc

Issue 2865233003: Use an MutationObserver to check when a password form disappears after XHR (Closed)
Patch Set: updates Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <algorithm> 5 #include <algorithm>
6 #include <ostream> 6 #include <ostream>
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "base/json/json_writer.h" 9 #include "base/json/json_writer.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 break; 235 break;
236 case PasswordForm::SubmissionIndicatorEvent::XHR_SUCCEEDED: 236 case PasswordForm::SubmissionIndicatorEvent::XHR_SUCCEEDED:
237 os << "XHR_SUCCEEDED"; 237 os << "XHR_SUCCEEDED";
238 break; 238 break;
239 case PasswordForm::SubmissionIndicatorEvent::FRAME_DETACHED: 239 case PasswordForm::SubmissionIndicatorEvent::FRAME_DETACHED:
240 os << "FRAME_DETACHED"; 240 os << "FRAME_DETACHED";
241 break; 241 break;
242 case PasswordForm::SubmissionIndicatorEvent::MANUAL_SAVE: 242 case PasswordForm::SubmissionIndicatorEvent::MANUAL_SAVE:
243 os << "MANUAL_SAVE"; 243 os << "MANUAL_SAVE";
244 break; 244 break;
245 case PasswordForm::SubmissionIndicatorEvent::DOM_MUTATION_AFTER_XHR:
246 os << "DOM_MUTATION_AFTER_XHR";
247 break;
245 default: 248 default:
246 os << "NO_SUBMISSION"; 249 os << "NO_SUBMISSION";
247 break; 250 break;
248 } 251 }
249 return os; 252 return os;
250 } 253 }
251 254
252 } // namespace autofill 255 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698