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

Unified Diff: chrome/browser/autofill/autofill_manager.cc

Issue 10540003: Move guid generation from chrome/common/ to base/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: installer Created 8 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/browser/autocomplete/shortcuts_provider.cc ('k') | chrome/browser/autofill/autofill_profile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_manager.cc
diff --git a/chrome/browser/autofill/autofill_manager.cc b/chrome/browser/autofill/autofill_manager.cc
index 107fe64122142ca59dcd3414104fadcc573ba04a..280980bc73cdeac6122c2b6a92984fc7140079be 100644
--- a/chrome/browser/autofill/autofill_manager.cc
+++ b/chrome/browser/autofill/autofill_manager.cc
@@ -13,6 +13,7 @@
#include "base/bind.h"
#include "base/command_line.h"
+#include "base/guid.h"
#include "base/logging.h"
#include "base/string16.h"
#include "base/string_util.h"
@@ -47,7 +48,6 @@
#include "chrome/common/autofill_messages.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_switches.h"
-#include "chrome/common/guid.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
#include "content/public/browser/browser_thread.h"
@@ -950,11 +950,11 @@ bool AutofillManager::GetProfileOrCreditCard(
GUIDPair credit_card_guid;
GUIDPair profile_guid;
UnpackGUIDs(unique_id, &credit_card_guid, &profile_guid);
- DCHECK(!guid::IsValidGUID(credit_card_guid.first) ||
- !guid::IsValidGUID(profile_guid.first));
+ DCHECK(!base::IsValidGUID(credit_card_guid.first) ||
+ !base::IsValidGUID(profile_guid.first));
// Find the profile that matches the |profile_guid|, if one is specified.
- if (guid::IsValidGUID(profile_guid.first)) {
+ if (base::IsValidGUID(profile_guid.first)) {
for (std::vector<AutofillProfile*>::const_iterator iter = profiles.begin();
iter != profiles.end(); ++iter) {
if ((*iter)->guid() == profile_guid.first) {
@@ -968,7 +968,7 @@ bool AutofillManager::GetProfileOrCreditCard(
}
// Find the credit card that matches the |credit_card_guid|, if specified.
- if (guid::IsValidGUID(credit_card_guid.first)) {
+ if (base::IsValidGUID(credit_card_guid.first)) {
for (std::vector<CreditCard*>::const_iterator iter = credit_cards.begin();
iter != credit_cards.end(); ++iter) {
if ((*iter)->guid() == credit_card_guid.first) {
@@ -1345,7 +1345,7 @@ void AutofillManager::ParseForms(const std::vector<FormData>& forms) {
}
int AutofillManager::GUIDToID(const GUIDPair& guid) const {
- if (!guid::IsValidGUID(guid.first))
+ if (!base::IsValidGUID(guid.first))
return 0;
std::map<GUIDPair, int>::const_iterator iter = guid_id_map_.find(guid);
« no previous file with comments | « chrome/browser/autocomplete/shortcuts_provider.cc ('k') | chrome/browser/autofill/autofill_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698