Lines Matching defs:local_state
19 void AppsPromo::RegisterPrefs(PrefService* local_state) {
21 local_state->RegisterStringPref(prefs::kNTPWebStorePromoId, empty);
22 local_state->RegisterStringPref(prefs::kNTPWebStorePromoHeader, empty);
23 local_state->RegisterStringPref(prefs::kNTPWebStorePromoButton, empty);
24 local_state->RegisterStringPref(prefs::kNTPWebStorePromoLink, empty);
25 local_state->RegisterStringPref(prefs::kNTPWebStorePromoExpire, empty);
40 PrefService* local_state = g_browser_process->local_state();
41 local_state->ClearPref(prefs::kNTPWebStorePromoId);
42 local_state->ClearPref(prefs::kNTPWebStorePromoHeader);
43 local_state->ClearPref(prefs::kNTPWebStorePromoButton);
44 local_state->ClearPref(prefs::kNTPWebStorePromoLink);
45 local_state->ClearPref(prefs::kNTPWebStorePromoExpire);
50 PrefService* local_state = g_browser_process->local_state();
51 return local_state->GetString(prefs::kNTPWebStorePromoButton);
56 PrefService* local_state = g_browser_process->local_state();
57 return local_state->GetString(prefs::kNTPWebStorePromoId);
62 PrefService* local_state = g_browser_process->local_state();
63 return local_state->GetString(prefs::kNTPWebStorePromoHeader);
68 PrefService* local_state = g_browser_process->local_state();
69 return GURL(local_state->GetString(prefs::kNTPWebStorePromoLink));
74 PrefService* local_state = g_browser_process->local_state();
75 return local_state->GetString(prefs::kNTPWebStorePromoExpire);
84 PrefService* local_state = g_browser_process->local_state();
85 local_state->SetString(prefs::kNTPWebStorePromoId, id);
86 local_state->SetString(prefs::kNTPWebStorePromoButton, button_text);
87 local_state->SetString(prefs::kNTPWebStorePromoHeader, header_text);
88 local_state->SetString(prefs::kNTPWebStorePromoLink, link.spec());
89 local_state->SetString(prefs::kNTPWebStorePromoExpire, expire_text);
94 PrefService* local_state = g_browser_process->local_state();
97 return local_state->HasPrefPath(prefs::kNTPWebStorePromoId) &&
98 local_state->HasPrefPath(prefs::kNTPWebStorePromoHeader) &&
99 local_state->HasPrefPath(prefs::kNTPWebStorePromoButton) &&
100 local_state->HasPrefPath(prefs::kNTPWebStorePromoLink) &&
101 local_state->HasPrefPath(prefs::kNTPWebStorePromoExpire);