| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/dom_ui/options/autofill_options_handler.h" | 5 #include "chrome/browser/dom_ui/options/autofill_options_handler.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/string16.h" | 11 #include "base/string16.h" |
| 12 #include "base/string_number_conversions.h" | 12 #include "base/string_number_conversions.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "chrome/browser/autofill/autofill_profile.h" | 14 #include "chrome/browser/autofill/autofill_profile.h" |
| 15 #include "chrome/browser/autofill/credit_card.h" | 15 #include "chrome/browser/autofill/credit_card.h" |
| 16 #include "chrome/browser/guid.h" | |
| 17 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
| 17 #include "chrome/common/guid.h" |
| 18 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
| 19 | 19 |
| 20 AutoFillOptionsHandler::AutoFillOptionsHandler() | 20 AutoFillOptionsHandler::AutoFillOptionsHandler() |
| 21 : personal_data_(NULL) { | 21 : personal_data_(NULL) { |
| 22 } | 22 } |
| 23 | 23 |
| 24 AutoFillOptionsHandler::~AutoFillOptionsHandler() { | 24 AutoFillOptionsHandler::~AutoFillOptionsHandler() { |
| 25 if (personal_data_) | 25 if (personal_data_) |
| 26 personal_data_->RemoveObserver(this); | 26 personal_data_->RemoveObserver(this); |
| 27 } | 27 } |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 return; | 364 return; |
| 365 | 365 |
| 366 std::string guid; | 366 std::string guid; |
| 367 if (!args->GetString(0, &guid)) { | 367 if (!args->GetString(0, &guid)) { |
| 368 NOTREACHED(); | 368 NOTREACHED(); |
| 369 return; | 369 return; |
| 370 } | 370 } |
| 371 | 371 |
| 372 personal_data_->RemoveCreditCard(guid); | 372 personal_data_->RemoveCreditCard(guid); |
| 373 } | 373 } |
| OLD | NEW |