| 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
|
|
|