#include "chrome/browser/prefs/pref_metrics_service.h"
#include <string>
#include "base/metrics/histogram_macros.h"
#include "base/values.h"
#include "build/build_config.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/prefs/session_startup_pref.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
#include "chrome/browser/ui/tabs/pinned_tab_codec.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
#include "components/prefs/pref_service.h"
#include "components/search_engines/search_engine_utils.h"
#include "url/gurl.h"
PrefMetricsService::PrefMetricsService(Profile* profile)
: … { … }
PrefMetricsService::~PrefMetricsService() { … }
void PrefMetricsService::RecordHomePageLaunchMetrics(bool show_home_button,
bool homepage_is_ntp,
const GURL& homepage_url) { … }
void PrefMetricsService::RecordLaunchPrefs() { … }
PrefMetricsService::Factory* PrefMetricsService::Factory::GetInstance() { … }
PrefMetricsService* PrefMetricsService::Factory::GetForProfile(
Profile* profile) { … }
PrefMetricsService::Factory::Factory()
: … { … }
PrefMetricsService::Factory::~Factory() { … }
std::unique_ptr<KeyedService>
PrefMetricsService::Factory::BuildServiceInstanceForBrowserContext(
content::BrowserContext* context) const { … }
bool PrefMetricsService::Factory::ServiceIsCreatedWithBrowserContext() const { … }