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

Unified Diff: chrome/browser/chromeos/login/kiosk_browsertest.cc

Issue 271533004: Turning on MultiProfile by default for ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/kiosk_browsertest.cc
diff --git a/chrome/browser/chromeos/login/kiosk_browsertest.cc b/chrome/browser/chromeos/login/kiosk_browsertest.cc
index 44869e08ab9302d3bc3a4fef66492a911de3963a..aeec99901e7c576e4a06aaf3df3913d09f525d42 100644
--- a/chrome/browser/chromeos/login/kiosk_browsertest.cc
+++ b/chrome/browser/chromeos/login/kiosk_browsertest.cc
@@ -34,6 +34,7 @@
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extension_test_message_listener.h"
#include "chrome/browser/profiles/profile_impl.h"
+#include "chrome/browser/profiles/profiles_state.h"
#include "chrome/browser/ui/webui/chromeos/login/kiosk_app_menu_handler.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths.h"
@@ -431,19 +432,12 @@ class KioskTest : public OobeBaseTest {
// run. Note this must be called before app profile is loaded.
void SetupAppProfile(const std::string& relative_app_profile_dir) {
base::FilePath app_profile_dir;
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- ::switches::kMultiProfiles)) {
- KioskAppManager::App app_data;
- CHECK(KioskAppManager::Get()->GetApp(test_app_id(), &app_data));
- std::string app_user_id_hash =
- CryptohomeClient::GetStubSanitizedUsername(app_data.user_id);
- app_profile_dir =
- ProfileHelper::GetProfilePathByUserIdHash(app_user_id_hash);
- } else {
- ASSERT_TRUE(PathService::Get(chrome::DIR_USER_DATA, &app_profile_dir));
- app_profile_dir = app_profile_dir.Append(
- ProfileHelper::GetProfileDirByLegacyLoginProfileSwitch());
- }
+ KioskAppManager::App app_data;
+ CHECK(KioskAppManager::Get()->GetApp(test_app_id(), &app_data));
+ std::string app_user_id_hash =
+ CryptohomeClient::GetStubSanitizedUsername(app_data.user_id);
+ app_profile_dir =
+ ProfileHelper::GetProfilePathByUserIdHash(app_user_id_hash);
ASSERT_TRUE(base::CreateDirectory(app_profile_dir));
base::FilePath test_data_dir;
« no previous file with comments | « chrome/browser/chromeos/login/chrome_restart_request.cc ('k') | chrome/browser/chromeos/login/login_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698