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

Unified Diff: chrome/browser/ui/webui/options2/autofill_options_handler2.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
Index: chrome/browser/ui/webui/options2/autofill_options_handler2.cc
diff --git a/chrome/browser/ui/webui/options2/autofill_options_handler2.cc b/chrome/browser/ui/webui/options2/autofill_options_handler2.cc
index 96e14700edcdad4e049530895ceec4913a93e67a..1b3fe5cbe2e2ffee91aba45a1ce79a6312c7677a 100644
--- a/chrome/browser/ui/webui/options2/autofill_options_handler2.cc
+++ b/chrome/browser/ui/webui/options2/autofill_options_handler2.cc
@@ -8,6 +8,7 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
+#include "base/guid.h"
#include "base/logging.h"
#include "base/string16.h"
#include "base/string_number_conversions.h"
@@ -21,7 +22,6 @@
#include "chrome/browser/autofill/phone_number_i18n.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/web_ui_util.h"
-#include "chrome/common/guid.h"
#include "chrome/common/url_constants.h"
#include "content/public/browser/web_ui.h"
#include "grit/generated_resources.h"
@@ -572,8 +572,8 @@ void AutofillOptionsHandler::SetAddress(const ListValue* args) {
if (args->GetList(10, &list_value))
SetValueList(list_value, EMAIL_ADDRESS, &profile);
- if (!guid::IsValidGUID(profile.guid())) {
- profile.set_guid(guid::GenerateGUID());
+ if (!base::IsValidGUID(profile.guid())) {
+ profile.set_guid(base::GenerateGUID());
personal_data_->AddProfile(profile);
} else {
personal_data_->UpdateProfile(profile);
@@ -602,8 +602,8 @@ void AutofillOptionsHandler::SetCreditCard(const ListValue* args) {
if (args->GetString(4, &value))
credit_card.SetInfo(CREDIT_CARD_EXP_4_DIGIT_YEAR, value);
- if (!guid::IsValidGUID(credit_card.guid())) {
- credit_card.set_guid(guid::GenerateGUID());
+ if (!base::IsValidGUID(credit_card.guid())) {
+ credit_card.set_guid(base::GenerateGUID());
personal_data_->AddCreditCard(credit_card);
} else {
personal_data_->UpdateCreditCard(credit_card);
« no previous file with comments | « chrome/browser/search_engines/template_url_service.cc ('k') | chrome/browser/webdata/autocomplete_syncable_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698