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

Side by Side Diff: chrome/browser/extensions/extension_ui_util.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 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_ui_util.h" 5 #include "chrome/browser/extensions/extension_ui_util.h"
6 6
7 #include "base/prefs/pref_service.h"
8 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/common/extensions/extension_constants.h" 8 #include "chrome/common/extensions/extension_constants.h"
10 #include "chrome/common/pref_names.h" 9 #include "chrome/common/pref_names.h"
10 #include "components/prefs/pref_service.h"
11 #include "extensions/browser/extension_util.h" 11 #include "extensions/browser/extension_util.h"
12 #include "extensions/common/constants.h" 12 #include "extensions/common/constants.h"
13 #include "extensions/common/extension.h" 13 #include "extensions/common/extension.h"
14 14
15 namespace extensions { 15 namespace extensions {
16 16
17 namespace { 17 namespace {
18 18
19 bool IsBlockedByPolicy(const Extension* app, content::BrowserContext* context) { 19 bool IsBlockedByPolicy(const Extension* app, content::BrowserContext* context) {
20 Profile* profile = Profile::FromBrowserContext(context); 20 Profile* profile = Profile::FromBrowserContext(context);
(...skipping 30 matching lines...) Expand all
51 return extension->ShouldDisplayInExtensionSettings(); 51 return extension->ShouldDisplayInExtensionSettings();
52 } 52 }
53 53
54 bool ShouldNotBeVisible(const Extension* extension, 54 bool ShouldNotBeVisible(const Extension* extension,
55 content::BrowserContext* context) { 55 content::BrowserContext* context) {
56 return extension->ShouldNotBeVisible(); 56 return extension->ShouldNotBeVisible();
57 } 57 }
58 58
59 } // namespace ui_util 59 } // namespace ui_util
60 } // namespace extensions 60 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_tabs_apitest.cc ('k') | chrome/browser/extensions/extension_web_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698