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

Unified Diff: chrome/browser/android/history_report/data_provider.cc

Issue 1418093004: Stop logging users' history urls when url db is not available (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename Created 5 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/history_report/data_provider.cc
diff --git a/chrome/browser/android/history_report/data_provider.cc b/chrome/browser/android/history_report/data_provider.cc
index e2892793b5bb297109789657993f1463dbff04bc..d589ece08ed179f860d5b3e32cf7b4c63004a698 100644
--- a/chrome/browser/android/history_report/data_provider.cc
+++ b/chrome/browser/android/history_report/data_provider.cc
@@ -22,6 +22,8 @@
using bookmarks::BookmarkModel;
namespace {
+static bool g_is_debug = false;
+
typedef base::hash_map<std::string, BookmarkModel::URLAndTitle*> BookmarkMap;
struct Context {
@@ -45,8 +47,8 @@ void UpdateUrl(Context* context,
history_report::DeltaFileEntryWithData* entry = &((*urls)[position]);
if (success) {
entry->SetData(url);
- } else {
- LOG(WARNING) << "No data for url " << entry->Url();
+ } else if (g_is_debug){
+ LOG(WARNING) << "DB not initialized or no data for url " << entry->Url();
}
if (position + 1 == urls->size()) {
context->finished.Signal();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698