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

Unified Diff: trunk/src/chrome/browser/chromeos/profiles/profile_helper.cc

Issue 14066013: Revert 194348 "Part of multiprofile implementation." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 8 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: trunk/src/chrome/browser/chromeos/profiles/profile_helper.cc
===================================================================
--- trunk/src/chrome/browser/chromeos/profiles/profile_helper.cc (revision 194361)
+++ trunk/src/chrome/browser/chromeos/profiles/profile_helper.cc (working copy)
@@ -1,48 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/chromeos/profiles/profile_helper.h"
-
-#include "chrome/browser/browser_process.h"
-#include "chrome/browser/chromeos/cros/cros_library.h"
-#include "chrome/browser/chromeos/cros/network_library.h"
-#include "chrome/browser/chromeos/sms_observer.h"
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/profiles/profile_destroyer.h"
-#include "chrome/browser/profiles/profile_manager.h"
-#include "chrome/common/chrome_constants.h"
-
-
-namespace chromeos {
-
-// static
-Profile* ProfileHelper::GetSigninProfile() {
- ProfileManager* profile_manager = g_browser_process->profile_manager();
- base::FilePath user_data_dir = profile_manager->user_data_dir();
- base::FilePath signin_profile_dir =
- user_data_dir.AppendASCII(chrome::kInitialProfile);
- return profile_manager->GetProfile(signin_profile_dir)->
- GetOffTheRecordProfile();
-}
-
-// static
-void ProfileHelper::ProfileStartup(Profile* profile, bool process_startup) {
- // Initialize Chrome OS preferences like touch pad sensitivity. For the
- // preferences to work in the guest mode, the initialization has to be
- // done after |profile| is switched to the incognito profile (which
- // is actually GuestSessionProfile in the guest mode). See the
- // GetOffTheRecordProfile() call above.
- profile->InitChromeOSPreferences();
-
- if (process_startup) {
- static chromeos::SmsObserver* sms_observer =
- new chromeos::SmsObserver();
- chromeos::CrosLibrary::Get()->GetNetworkLibrary()->
- AddNetworkManagerObserver(sms_observer);
-
- profile->SetupChromeOSEnterpriseExtensionObserver();
- }
-}
-
-} // namespace chromeos
« no previous file with comments | « trunk/src/chrome/browser/chromeos/profiles/profile_helper.h ('k') | trunk/src/chrome/browser/chromeos/sms_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698