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 "extensions/shell/browser/shell_extensions_browser_client.h" | 5 #include "extensions/shell/browser/shell_extensions_browser_client.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "content/public/browser/browser_context.h" | 10 #include "content/public/browser/browser_context.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 } | 77 } |
78 | 78 |
79 BrowserContext* ShellExtensionsBrowserClient::GetOriginalContext( | 79 BrowserContext* ShellExtensionsBrowserClient::GetOriginalContext( |
80 BrowserContext* context) { | 80 BrowserContext* context) { |
81 return context; | 81 return context; |
82 } | 82 } |
83 | 83 |
84 #if defined(OS_CHROMEOS) | 84 #if defined(OS_CHROMEOS) |
85 std::string ShellExtensionsBrowserClient::GetUserIdHashFromContext( | 85 std::string ShellExtensionsBrowserClient::GetUserIdHashFromContext( |
86 content::BrowserContext* context) { | 86 content::BrowserContext* context) { |
87 return chromeos::LoginState::Get()->primary_user_hash();; | 87 return chromeos::LoginState::Get()->primary_user_hash(); |
88 } | 88 } |
89 #endif | 89 #endif |
90 | 90 |
91 bool ShellExtensionsBrowserClient::IsGuestSession( | 91 bool ShellExtensionsBrowserClient::IsGuestSession( |
92 BrowserContext* context) const { | 92 BrowserContext* context) const { |
93 return false; | 93 return false; |
94 } | 94 } |
95 | 95 |
96 bool ShellExtensionsBrowserClient::IsExtensionIncognitoEnabled( | 96 bool ShellExtensionsBrowserClient::IsExtensionIncognitoEnabled( |
97 const std::string& extension_id, | 97 const std::string& extension_id, |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 api_client_.reset(api_client); | 243 api_client_.reset(api_client); |
244 } | 244 } |
245 | 245 |
246 ExtensionWebContentsObserver* | 246 ExtensionWebContentsObserver* |
247 ShellExtensionsBrowserClient::GetExtensionWebContentsObserver( | 247 ShellExtensionsBrowserClient::GetExtensionWebContentsObserver( |
248 content::WebContents* web_contents) { | 248 content::WebContents* web_contents) { |
249 return ShellExtensionWebContentsObserver::FromWebContents(web_contents); | 249 return ShellExtensionWebContentsObserver::FromWebContents(web_contents); |
250 } | 250 } |
251 | 251 |
252 } // namespace extensions | 252 } // namespace extensions |
OLD | NEW |