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

Side by Side Diff: chrome/browser/dom_ui/options/autofill_options_handler.cc

Issue 5849001: Move GUID utils to src/chrome/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chrome/common Created 10 years 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/autofill/personal_data_manager_unittest.cc ('k') | chrome/browser/metrics/metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698