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

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

Issue 1558633002: Cleanup: Remove double semicolons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Convert CP code to a while loop, fix nit Created 4 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 unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698