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

Unified Diff: chrome/browser/chromeos/profile_startup.cc

Issue 13633003: Part of multiprofile implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: m 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
« no previous file with comments | « chrome/browser/chromeos/profile_startup.h ('k') | chrome/browser/chromeos/profiles/profile_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/profile_startup.cc
diff --git a/chrome/browser/chromeos/profile_startup.cc b/chrome/browser/chromeos/profile_startup.cc
deleted file mode 100644
index 56216de5a8633c6507f74e4402dce6557415342f..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/profile_startup.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2012 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/profile_startup.h"
-
-#include "chrome/browser/chromeos/cros/cros_library.h"
-#include "chrome/browser/chromeos/cros/network_library.h"
-#include "chrome/browser/chromeos/customization_document.h"
-#include "chrome/browser/chromeos/enterprise_extension_observer.h"
-#include "chrome/browser/chromeos/sms_observer.h"
-#include "chrome/browser/profiles/profile.h"
-#include "chromeos/dbus/dbus_thread_manager.h"
-
-namespace chromeos {
-
-// TODO(beng): It is very fishy that any of these services need to be tied to
-// a browser profile. This dependency should be severed and this
-// init moved earlier in startup.
-void 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(profile);
- chromeos::CrosLibrary::Get()->GetNetworkLibrary()->
- AddNetworkManagerObserver(sms_observer);
-
- profile->SetupChromeOSEnterpriseExtensionObserver();
- }
-}
-
-} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/profile_startup.h ('k') | chrome/browser/chromeos/profiles/profile_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698