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

Side by Side Diff: components/autofill/content/renderer/password_autofill_agent.cc

Issue 1854993002: [Extensions] Remove linked_ptr entirely from extensions generated code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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 "components/autofill/content/renderer/password_autofill_agent.h" 5 #include "components/autofill/content/renderer/password_autofill_agent.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/command_line.h" 13 #include "base/command_line.h"
14 #include "base/i18n/case_conversion.h" 14 #include "base/i18n/case_conversion.h"
15 #include "base/memory/linked_ptr.h"
15 #include "base/message_loop/message_loop.h" 16 #include "base/message_loop/message_loop.h"
16 #include "base/metrics/field_trial.h" 17 #include "base/metrics/field_trial.h"
17 #include "base/metrics/histogram_macros.h" 18 #include "base/metrics/histogram_macros.h"
18 #include "base/strings/utf_string_conversions.h" 19 #include "base/strings/utf_string_conversions.h"
19 #include "build/build_config.h" 20 #include "build/build_config.h"
20 #include "components/autofill/content/common/autofill_messages.h" 21 #include "components/autofill/content/common/autofill_messages.h"
21 #include "components/autofill/content/renderer/form_autofill_util.h" 22 #include "components/autofill/content/renderer/form_autofill_util.h"
22 #include "components/autofill/content/renderer/password_form_conversion_utils.h" 23 #include "components/autofill/content/renderer/password_form_conversion_utils.h"
23 #include "components/autofill/content/renderer/renderer_save_password_progress_l ogger.h" 24 #include "components/autofill/content/renderer/renderer_save_password_progress_l ogger.h"
24 #include "components/autofill/core/common/autofill_constants.h" 25 #include "components/autofill/core/common/autofill_constants.h"
(...skipping 1482 matching lines...) Expand 10 before | Expand all | Expand 10 after
1507 } 1508 }
1508 1509
1509 bool PasswordAutofillAgent::ProvisionallySavedPasswordIsValid() { 1510 bool PasswordAutofillAgent::ProvisionallySavedPasswordIsValid() {
1510 return provisionally_saved_form_ && 1511 return provisionally_saved_form_ &&
1511 !provisionally_saved_form_->username_value.empty() && 1512 !provisionally_saved_form_->username_value.empty() &&
1512 !(provisionally_saved_form_->password_value.empty() && 1513 !(provisionally_saved_form_->password_value.empty() &&
1513 provisionally_saved_form_->new_password_value.empty()); 1514 provisionally_saved_form_->new_password_value.empty());
1514 } 1515 }
1515 1516
1516 } // namespace autofill 1517 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698