summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync
diff options
context:
space:
mode:
authorzea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-18 00:45:16 +0000
committerzea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-18 00:45:16 +0000
commitbe6244ab66fe48c42096f3cda1df613d40dd72c5 (patch)
tree8eaada213a9d534e61b9c85ee7e72027e63bb0b5 /chrome/browser/sync
parent36ce61b15c175bc743dc6780514a3458250de3fd (diff)
downloadchromium_src-be6244ab66fe48c42096f3cda1df613d40dd72c5.zip
chromium_src-be6244ab66fe48c42096f3cda1df613d40dd72c5.tar.gz
chromium_src-be6244ab66fe48c42096f3cda1df613d40dd72c5.tar.bz2
[Sync] Set logging that may contain personal information to verbosity level 2.
BUG=68954 TEST=Sign into sync for first time with --vmodule="*/sync/*"=1 and see what gets printed Review URL: http://codereview.chromium.org/6534013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75336 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync')
-rw-r--r--chrome/browser/sync/engine/download_updates_command.cc2
-rw-r--r--chrome/browser/sync/engine/syncer_util.cc2
-rw-r--r--chrome/browser/sync/glue/autofill_model_associator.cc8
-rw-r--r--chrome/browser/sync/glue/autofill_profile_model_associator.cc18
4 files changed, 15 insertions, 15 deletions
diff --git a/chrome/browser/sync/engine/download_updates_command.cc b/chrome/browser/sync/engine/download_updates_command.cc
index 4c01784..602b1ea 100644
--- a/chrome/browser/sync/engine/download_updates_command.cc
+++ b/chrome/browser/sync/engine/download_updates_command.cc
@@ -74,7 +74,7 @@ void DownloadUpdatesCommand::ExecuteImpl(SyncSession* session) {
&update_response,
session);
- VLOG(1) << SyncerProtoUtil::ClientToServerResponseDebugString(
+ VLOG(2) << SyncerProtoUtil::ClientToServerResponseDebugString(
update_response);
StatusController* status = session->status_controller();
diff --git a/chrome/browser/sync/engine/syncer_util.cc b/chrome/browser/sync/engine/syncer_util.cc
index ba9d3a2..5e7ec81 100644
--- a/chrome/browser/sync/engine/syncer_util.cc
+++ b/chrome/browser/sync/engine/syncer_util.cc
@@ -516,7 +516,7 @@ void SyncerUtil::UpdateLocalDataFromServerData(
DCHECK(!entry->Get(IS_UNSYNCED));
DCHECK(entry->Get(IS_UNAPPLIED_UPDATE));
- VLOG(1) << "Updating entry : " << *entry;
+ VLOG(2) << "Updating entry : " << *entry;
// Start by setting the properties that determine the model_type.
entry->Put(SPECIFICS, entry->Get(SERVER_SPECIFICS));
entry->Put(IS_DIR, entry->Get(SERVER_IS_DIR));
diff --git a/chrome/browser/sync/glue/autofill_model_associator.cc b/chrome/browser/sync/glue/autofill_model_associator.cc
index 60c92d2..4a204af 100644
--- a/chrome/browser/sync/glue/autofill_model_associator.cc
+++ b/chrome/browser/sync/glue/autofill_model_associator.cc
@@ -235,14 +235,14 @@ bool AutofillModelAssociator::TraverseAndAssociateAllSyncNodes(
bool autofill_profile_not_migrated = HasNotMigratedYet(write_trans);
- if (VLOG_IS_ON(1) && autofill_profile_not_migrated) {
- VLOG(1) << "[AUTOFILL MIGRATION]"
+ if (VLOG_IS_ON(2) && autofill_profile_not_migrated) {
+ VLOG(2) << "[AUTOFILL MIGRATION]"
<< "Printing profiles from web db";
for (std::vector<AutoFillProfile*>::const_iterator ix =
all_profiles_from_db.begin(); ix != all_profiles_from_db.end(); ++ix) {
AutoFillProfile* p = *ix;
- VLOG(1) << "[AUTOFILL MIGRATION] "
+ VLOG(2) << "[AUTOFILL MIGRATION] "
<< p->GetFieldText(AutoFillType(NAME_FIRST))
<< p->GetFieldText(AutoFillType(NAME_LAST));
}
@@ -268,7 +268,7 @@ bool AutofillModelAssociator::TraverseAndAssociateAllSyncNodes(
} else if (autofill.has_profile()) {
// Ignore autofill profiles if we are not upgrading.
if (autofill_profile_not_migrated) {
- VLOG(1) << "[AUTOFILL MIGRATION] Looking for "
+ VLOG(2) << "[AUTOFILL MIGRATION] Looking for "
<< autofill.profile().name_first()
<< autofill.profile().name_last();
AddNativeProfileIfNeeded(
diff --git a/chrome/browser/sync/glue/autofill_profile_model_associator.cc b/chrome/browser/sync/glue/autofill_profile_model_associator.cc
index 0b7e651..1ef63ec 100644
--- a/chrome/browser/sync/glue/autofill_profile_model_associator.cc
+++ b/chrome/browser/sync/glue/autofill_profile_model_associator.cc
@@ -46,14 +46,14 @@ bool AutofillProfileModelAssociator::TraverseAndAssociateChromeAutoFillProfiles(
std::vector<AutoFillProfile*>* new_profiles,
std::vector<std::string>* profiles_to_delete) {
- if (VLOG_IS_ON(1)) {
- VLOG(1) << "[AUTOFILL MIGRATION]"
+ if (VLOG_IS_ON(2)) {
+ VLOG(2) << "[AUTOFILL MIGRATION]"
<< "Printing profiles from web db";
for (std::vector<AutoFillProfile*>::const_iterator ix =
all_profiles_from_db.begin(); ix != all_profiles_from_db.end(); ++ix) {
AutoFillProfile* p = *ix;
- VLOG(1) << "[AUTOFILL MIGRATION] "
+ VLOG(2) << "[AUTOFILL MIGRATION] "
<< p->GetFieldText(AutoFillType(NAME_FIRST))
<< p->GetFieldText(AutoFillType(NAME_LAST))
<< p->guid();
@@ -77,7 +77,7 @@ bool AutofillProfileModelAssociator::TraverseAndAssociateChromeAutoFillProfiles(
// the same profile duplicated.
current_profiles->find(guid) == current_profiles->end()) {
- VLOG(1) << "[AUTOFILL MIGRATION]"
+ VLOG(2) << "[AUTOFILL MIGRATION]"
<< " Found in sync db: "
<< (*ix)->GetFieldText(AutoFillType(NAME_FIRST))
<< (*ix)->GetFieldText(AutoFillType(NAME_LAST))
@@ -304,7 +304,7 @@ bool AutofillProfileModelAssociator::MakeNewAutofillProfileSyncNodeIfNeeded(
std::string guid = autofill_specifics.guid();
Associate(&guid, sync_node_id);
current_profiles->insert(autofill_specifics.guid());
- VLOG(1) << "[AUTOFILL MIGRATION]"
+ VLOG(2) << "[AUTOFILL MIGRATION]"
<< "Found in sync db but with a different guid: "
<< UTF16ToUTF8(profile.GetFieldText(AutoFillType(NAME_FIRST)))
<< UTF16ToUTF8(profile.GetFieldText(AutoFillType(NAME_LAST)))
@@ -319,7 +319,7 @@ bool AutofillProfileModelAssociator::MakeNewAutofillProfileSyncNodeIfNeeded(
return false;
}
node.SetTitle(UTF8ToWide(profile.guid()));
- VLOG(1) << "[AUTOFILL MIGRATION]"
+ VLOG(2) << "[AUTOFILL MIGRATION]"
<< "NOT Found in sync db "
<< UTF16ToUTF8(profile.GetFieldText(AutoFillType(NAME_FIRST)))
<< UTF16ToUTF8(profile.GetFieldText(AutoFillType(NAME_LAST)))
@@ -367,7 +367,7 @@ void AutofillProfileModelAssociator::AddNativeProfileIfNeeded(
const sync_api::ReadNode& node) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
- VLOG(1) << "[AUTOFILL MIGRATION] "
+ VLOG(2) << "[AUTOFILL MIGRATION] "
<< "Trying to lookup "
<< profile.name_first()
<< " "
@@ -383,10 +383,10 @@ void AutofillProfileModelAssociator::AddNativeProfileIfNeeded(
AutoFillProfile* p = new AutoFillProfile(profile.guid());
OverwriteProfileWithServerData(p, profile);
bundle->new_profiles.push_back(p);
- VLOG(1) << "[AUTOFILL MIGRATION] "
+ VLOG(2) << "[AUTOFILL MIGRATION] "
<< " Did not find one so creating it on web db";
} else {
- VLOG(1) << "[AUTOFILL MIGRATION] "
+ VLOG(2) << "[AUTOFILL MIGRATION] "
<< " Found it on web db. Moving on ";
}
}