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

Side by Side Diff: chromeos/login/scoped_test_public_session_login_state.cc

Issue 2858643002: PS - Filtering activeTab URL (Closed)
Patch Set: ExtensionBuilder in test Created 3 years, 7 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
« no previous file with comments | « chromeos/login/scoped_test_public_session_login_state.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chromeos/login/scoped_test_public_session_login_state.h"
6
7 #include "chromeos/login/login_state.h"
8
9 namespace chromeos {
10
11 ScopedTestPublicSessionLoginState::ScopedTestPublicSessionLoginState() {
12 // Set Public Session state.
13 chromeos::LoginState::Initialize();
14 chromeos::LoginState::Get()->SetLoggedInState(
15 chromeos::LoginState::LOGGED_IN_ACTIVE,
16 chromeos::LoginState::LOGGED_IN_USER_PUBLIC_ACCOUNT);
17 }
18
19 ScopedTestPublicSessionLoginState::~ScopedTestPublicSessionLoginState() {
20 // Reset state at the end of test.
21 chromeos::LoginState::Shutdown();
22 }
23
24 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/login/scoped_test_public_session_login_state.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698