OLD | NEW |
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/extensions/chrome_extensions_browser_client.h" | 5 #include "chrome/browser/extensions/chrome_extensions_browser_client.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/version.h" | 8 #include "base/version.h" |
9 #include "chrome/browser/app_mode/app_mode_utils.h" | 9 #include "chrome/browser/app_mode/app_mode_utils.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 content::BrowserContext* ChromeExtensionsBrowserClient::GetOffTheRecordContext( | 74 content::BrowserContext* ChromeExtensionsBrowserClient::GetOffTheRecordContext( |
75 content::BrowserContext* context) { | 75 content::BrowserContext* context) { |
76 return static_cast<Profile*>(context)->GetOffTheRecordProfile(); | 76 return static_cast<Profile*>(context)->GetOffTheRecordProfile(); |
77 } | 77 } |
78 | 78 |
79 content::BrowserContext* ChromeExtensionsBrowserClient::GetOriginalContext( | 79 content::BrowserContext* ChromeExtensionsBrowserClient::GetOriginalContext( |
80 content::BrowserContext* context) { | 80 content::BrowserContext* context) { |
81 return static_cast<Profile*>(context)->GetOriginalProfile(); | 81 return static_cast<Profile*>(context)->GetOriginalProfile(); |
82 } | 82 } |
83 | 83 |
| 84 bool ChromeExtensionsBrowserClient::IsGuestSession( |
| 85 content::BrowserContext* context) { |
| 86 return static_cast<Profile*>(context)->IsGuestSession(); |
| 87 } |
| 88 |
84 bool ChromeExtensionsBrowserClient::IsExtensionIncognitoEnabled( | 89 bool ChromeExtensionsBrowserClient::IsExtensionIncognitoEnabled( |
85 const std::string& extension_id, | 90 const std::string& extension_id, |
86 content::BrowserContext* context) const { | 91 content::BrowserContext* context) const { |
87 return util::IsIncognitoEnabled(extension_id, context); | 92 return util::IsIncognitoEnabled(extension_id, context); |
88 } | 93 } |
89 | 94 |
90 bool ChromeExtensionsBrowserClient::CanExtensionCrossIncognito( | 95 bool ChromeExtensionsBrowserClient::CanExtensionCrossIncognito( |
91 const extensions::Extension* extension, | 96 const extensions::Extension* extension, |
92 content::BrowserContext* context) const { | 97 content::BrowserContext* context) const { |
93 return util::CanCrossIncognito(extension, context); | 98 return util::CanCrossIncognito(extension, context); |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 // The ActivityLog monitors and records function calls and events. | 202 // The ActivityLog monitors and records function calls and events. |
198 return ActivityLog::GetInstance(context); | 203 return ActivityLog::GetInstance(context); |
199 } | 204 } |
200 | 205 |
201 ExtensionSystemProvider* | 206 ExtensionSystemProvider* |
202 ChromeExtensionsBrowserClient::GetExtensionSystemFactory() { | 207 ChromeExtensionsBrowserClient::GetExtensionSystemFactory() { |
203 return ExtensionSystemFactory::GetInstance(); | 208 return ExtensionSystemFactory::GetInstance(); |
204 } | 209 } |
205 | 210 |
206 } // namespace extensions | 211 } // namespace extensions |
OLD | NEW |