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

Side by Side Diff: chrome/browser/media/protected_media_identifier_permission_context_factory.cc

Issue 1102733002: Remove most occurences of PrefRegistrySyncable::UNSYNCABLE_PREF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs-add-reg-funcs
Patch Set: Created 5 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/media/protected_media_identifier_permission_context_fac tory.h" 5 #include "chrome/browser/media/protected_media_identifier_permission_context_fac tory.h"
6 6
7 #include "chrome/browser/media/protected_media_identifier_permission_context.h" 7 #include "chrome/browser/media/protected_media_identifier_permission_context.h"
8 #include "chrome/browser/profiles/incognito_helpers.h" 8 #include "chrome/browser/profiles/incognito_helpers.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/common/pref_names.h" 10 #include "chrome/common/pref_names.h"
(...skipping 30 matching lines...) Expand all
41 ProtectedMediaIdentifierPermissionContextFactory::BuildServiceInstanceFor( 41 ProtectedMediaIdentifierPermissionContextFactory::BuildServiceInstanceFor(
42 content::BrowserContext* profile) const { 42 content::BrowserContext* profile) const {
43 return new ProtectedMediaIdentifierPermissionContext( 43 return new ProtectedMediaIdentifierPermissionContext(
44 static_cast<Profile*>(profile)); 44 static_cast<Profile*>(profile));
45 } 45 }
46 46
47 void 47 void
48 ProtectedMediaIdentifierPermissionContextFactory::RegisterProfilePrefs( 48 ProtectedMediaIdentifierPermissionContextFactory::RegisterProfilePrefs(
49 user_prefs::PrefRegistrySyncable* registry) { 49 user_prefs::PrefRegistrySyncable* registry) {
50 #if defined(OS_ANDROID) 50 #if defined(OS_ANDROID)
51 registry->RegisterBooleanPref( 51 registry->RegisterBooleanPref(prefs::kProtectedMediaIdentifierEnabled, true);
52 prefs::kProtectedMediaIdentifierEnabled,
53 true,
54 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
55 #endif 52 #endif
56 } 53 }
57 54
58 content::BrowserContext* 55 content::BrowserContext*
59 ProtectedMediaIdentifierPermissionContextFactory::GetBrowserContextToUse( 56 ProtectedMediaIdentifierPermissionContextFactory::GetBrowserContextToUse(
60 content::BrowserContext* context) const { 57 content::BrowserContext* context) const {
61 return chrome::GetBrowserContextOwnInstanceInIncognito(context); 58 return chrome::GetBrowserContextOwnInstanceInIncognito(context);
62 } 59 }
OLDNEW
« no previous file with comments | « chrome/browser/media/media_stream_devices_controller.cc ('k') | chrome/browser/media_galleries/media_galleries_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698