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

Unified Diff: chrome/browser/supervised_user/supervised_user_settings_service.cc

Issue 2771233002: Remove the wrapper functions content::RecordAction et al (Closed)
Patch Set: Rebased Created 3 years, 9 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/supervised_user/supervised_user_service.cc ('k') | chrome/browser/themes/theme_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/supervised_user/supervised_user_settings_service.cc
diff --git a/chrome/browser/supervised_user/supervised_user_settings_service.cc b/chrome/browser/supervised_user/supervised_user_settings_service.cc
index b3cbed67fd9b8ed8073666e2b8a3167049c4f2ea..46a7f462ee05a766b6329a9e72d61e613e90de86 100644
--- a/chrome/browser/supervised_user/supervised_user_settings_service.cc
+++ b/chrome/browser/supervised_user/supervised_user_settings_service.cc
@@ -12,6 +12,7 @@
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
#include "base/memory/ptr_util.h"
+#include "base/metrics/user_metrics.h"
#include "base/strings/string_util.h"
#include "base/threading/sequenced_worker_pool.h"
#include "chrome/browser/supervised_user/supervised_user_url_filter.h"
@@ -22,7 +23,6 @@
#include "components/sync/model/sync_error_factory.h"
#include "components/sync/protocol/sync.pb.h"
#include "content/public/browser/browser_thread.h"
-#include "content/public/browser/user_metrics.h"
using base::DictionaryValue;
using base::JSONReader;
@@ -148,7 +148,7 @@ void SupervisedUserSettingsService::PushItemToSync(
std::string key_suffix = key;
base::DictionaryValue* dict = nullptr;
if (sync_processor_) {
- content::RecordAction(UserMetricsAction("ManagedUsers_UploadItem_Syncing"));
+ base::RecordAction(UserMetricsAction("ManagedUsers_UploadItem_Syncing"));
dict = GetDictionaryAndSplitKey(&key_suffix);
DCHECK(GetQueuedItems()->empty());
SyncChangeList change_list;
@@ -163,7 +163,7 @@ void SupervisedUserSettingsService::PushItemToSync(
} else {
// Queue the item up to be uploaded when we start syncing
// (in MergeDataAndStartSyncing()).
- content::RecordAction(UserMetricsAction("ManagedUsers_UploadItem_Queued"));
+ base::RecordAction(UserMetricsAction("ManagedUsers_UploadItem_Queued"));
dict = GetQueuedItems();
}
dict->SetWithoutPathExpansion(key_suffix, std::move(value));
« no previous file with comments | « chrome/browser/supervised_user/supervised_user_service.cc ('k') | chrome/browser/themes/theme_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698