OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/extensions/extension_management.h" | 5 #include "chrome/browser/extensions/extension_management.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 Profile::FromBrowserContext(context)->GetPrefs()); | 486 Profile::FromBrowserContext(context)->GetPrefs()); |
487 } | 487 } |
488 | 488 |
489 content::BrowserContext* ExtensionManagementFactory::GetBrowserContextToUse( | 489 content::BrowserContext* ExtensionManagementFactory::GetBrowserContextToUse( |
490 content::BrowserContext* context) const { | 490 content::BrowserContext* context) const { |
491 return chrome::GetBrowserContextRedirectedInIncognito(context); | 491 return chrome::GetBrowserContextRedirectedInIncognito(context); |
492 } | 492 } |
493 | 493 |
494 void ExtensionManagementFactory::RegisterProfilePrefs( | 494 void ExtensionManagementFactory::RegisterProfilePrefs( |
495 user_prefs::PrefRegistrySyncable* user_prefs) { | 495 user_prefs::PrefRegistrySyncable* user_prefs) { |
496 user_prefs->RegisterDictionaryPref( | 496 user_prefs->RegisterDictionaryPref(pref_names::kExtensionManagement); |
497 pref_names::kExtensionManagement, | |
498 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | |
499 } | 497 } |
500 | 498 |
501 } // namespace extensions | 499 } // namespace extensions |
OLD | NEW |