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

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

Issue 164613002: Revert 251094 "Revert 250826 "Remove Profile dependency from app..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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_factory.h" 8 #include "apps/shell/browser/shell_extension_system_factory.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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // app_shell doesn't monitor API function calls or events. 147 // app_shell doesn't monitor API function calls or events.
144 return NULL; 148 return NULL;
145 } 149 }
146 150
147 ExtensionSystemProvider* 151 ExtensionSystemProvider*
148 ShellExtensionsBrowserClient::GetExtensionSystemFactory() { 152 ShellExtensionsBrowserClient::GetExtensionSystemFactory() {
149 return ShellExtensionSystemFactory::GetInstance(); 153 return ShellExtensionSystemFactory::GetInstance();
150 } 154 }
151 155
152 } // namespace extensions 156 } // namespace extensions
OLDNEW
« no previous file with comments | « trunk/src/apps/shell/browser/shell_extensions_browser_client.h ('k') | trunk/src/apps/shell_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698