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

Unified Diff: extensions/shell/browser/shell_extensions_browser_client.cc

Issue 870163002: Move networking_private to src/extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GN 2 Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/shell/browser/shell_extensions_browser_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/shell/browser/shell_extensions_browser_client.cc
diff --git a/extensions/shell/browser/shell_extensions_browser_client.cc b/extensions/shell/browser/shell_extensions_browser_client.cc
index 013714c8e45bd9a472e739302cd57d44c549845c..efd279b30503a82779fbdca480338b22c7d770f6 100644
--- a/extensions/shell/browser/shell_extensions_browser_client.cc
+++ b/extensions/shell/browser/shell_extensions_browser_client.cc
@@ -4,6 +4,7 @@
#include "extensions/shell/browser/shell_extensions_browser_client.h"
+#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
#include "extensions/browser/api/extensions_api_client.h"
#include "extensions/browser/api/generated_api_registration.h"
@@ -19,6 +20,10 @@
#include "extensions/shell/browser/shell_extensions_api_client.h"
#include "extensions/shell/browser/shell_runtime_api_delegate.h"
+#if defined(OS_CHROMEOS)
+#include "chromeos/login/login_state.h"
+#endif
+
using content::BrowserContext;
using content::BrowserThread;
@@ -71,6 +76,13 @@ BrowserContext* ShellExtensionsBrowserClient::GetOriginalContext(
return context;
}
+#if defined(OS_CHROMEOS)
+std::string ShellExtensionsBrowserClient::GetUserIdHashFromContext(
+ content::BrowserContext* context) {
+ return chromeos::LoginState::Get()->primary_user_hash();;
+}
+#endif
+
bool ShellExtensionsBrowserClient::IsGuestSession(
BrowserContext* context) const {
return false;
« no previous file with comments | « extensions/shell/browser/shell_extensions_browser_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698