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

Side by Side Diff: apps/shell/browser/shell_extensions_browser_client.cc

Issue 157813007: Remove Profile dependency from apps::ShellWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 6 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 | Annotate | Revision Log
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 "apps/shell/browser/shell_extensions_browser_client.h" 5 #include "apps/shell/browser/shell_extensions_browser_client.h"
6 6
7 #include "apps/shell/browser/shell_app_sorting.h" 7 #include "apps/shell/browser/shell_app_sorting.h"
8 #include "apps/shell/browser/shell_extension_system.h" 8 #include "apps/shell/browser/shell_extension_system.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/prefs/pref_service_factory.h" 10 #include "base/prefs/pref_service_factory.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 BrowserContext* context) { 75 BrowserContext* context) {
76 // app_shell only supports a single context. 76 // app_shell only supports a single context.
77 return NULL; 77 return NULL;
78 } 78 }
79 79
80 BrowserContext* ShellExtensionsBrowserClient::GetOriginalContext( 80 BrowserContext* ShellExtensionsBrowserClient::GetOriginalContext(
81 BrowserContext* context) { 81 BrowserContext* context) {
82 return context; 82 return context;
83 } 83 }
84 84
85 bool ShellExtensionsBrowserClient::IsGuestSession(BrowserContext* context) {
86 return false;
87 }
88
85 bool ShellExtensionsBrowserClient::IsExtensionIncognitoEnabled( 89 bool ShellExtensionsBrowserClient::IsExtensionIncognitoEnabled(
86 const std::string& extension_id, 90 const std::string& extension_id,
87 content::BrowserContext* context) const { 91 content::BrowserContext* context) const {
88 return false; 92 return false;
89 } 93 }
90 94
91 bool ShellExtensionsBrowserClient::CanExtensionCrossIncognito( 95 bool ShellExtensionsBrowserClient::CanExtensionCrossIncognito(
92 const extensions::Extension* extension, 96 const extensions::Extension* extension,
93 content::BrowserContext* context) const { 97 content::BrowserContext* context) const {
94 return false; 98 return false;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 ShellExtensionsBrowserClient::GetExtensionSystemDependencies() { 152 ShellExtensionsBrowserClient::GetExtensionSystemDependencies() {
149 return ShellExtensionSystem::GetDependencies(); 153 return ShellExtensionSystem::GetDependencies();
150 } 154 }
151 155
152 ExtensionSystem* ShellExtensionsBrowserClient::CreateExtensionSystem( 156 ExtensionSystem* ShellExtensionsBrowserClient::CreateExtensionSystem(
153 BrowserContext* context) { 157 BrowserContext* context) {
154 return new ShellExtensionSystem(context); 158 return new ShellExtensionSystem(context);
155 } 159 }
156 160
157 } // namespace extensions 161 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698