OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/chrome_browser_main_chromeos.h" | 5 #include "chrome/browser/chromeos/chrome_browser_main_chromeos.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 if (!user_manager->IsLoggedInAsGuest()) { | 497 if (!user_manager->IsLoggedInAsGuest()) { |
498 g_browser_process->browser_policy_connector()->InitializeUserPolicy( | 498 g_browser_process->browser_policy_connector()->InitializeUserPolicy( |
499 username, user_manager->IsLoggedInAsPublicAccount(), | 499 username, user_manager->IsLoggedInAsPublicAccount(), |
500 false /* wait_for_policy_fetch */); | 500 false /* wait_for_policy_fetch */); |
501 } | 501 } |
502 | 502 |
503 // Load the default app order synchronously for restarting case. | 503 // Load the default app order synchronously for restarting case. |
504 app_order_loader_.reset( | 504 app_order_loader_.reset( |
505 new default_app_order::ExternalLoader(false /* async */)); | 505 new default_app_order::ExternalLoader(false /* async */)); |
506 | 506 |
| 507 // TODO(antrim): SessionStarted notification should be moved to |
| 508 // PostProfileInit at some point, as NOTIFICATION_SESSION_STARTED should |
| 509 // go after NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, which requires |
| 510 // loaded profile (and, thus, should be fired in PostProfileInit, as |
| 511 // synchronous profile loading does not emit it). |
| 512 |
507 user_manager->SessionStarted(); | 513 user_manager->SessionStarted(); |
508 } | 514 } |
509 | 515 |
510 if (!app_order_loader_) { | 516 if (!app_order_loader_) { |
511 app_order_loader_.reset( | 517 app_order_loader_.reset( |
512 new default_app_order::ExternalLoader(true /* async */)); | 518 new default_app_order::ExternalLoader(true /* async */)); |
513 } | 519 } |
514 | 520 |
515 // Initialize magnification manager before ash tray is created. And this must | 521 // Initialize magnification manager before ash tray is created. And this must |
516 // be placed after UserManager::SessionStarted(); | 522 // be placed after UserManager::SessionStarted(); |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 } else if (trial->group() == margin_200mb) { | 765 } else if (trial->group() == margin_200mb) { |
760 LOG(WARNING) << "low_mem: Part of '200MB' experiment"; | 766 LOG(WARNING) << "low_mem: Part of '200MB' experiment"; |
761 LowMemoryObserver::SetLowMemoryMargin(200); | 767 LowMemoryObserver::SetLowMemoryMargin(200); |
762 } else { | 768 } else { |
763 LOG(WARNING) << "low_mem: Part of 'default' experiment"; | 769 LOG(WARNING) << "low_mem: Part of 'default' experiment"; |
764 } | 770 } |
765 } | 771 } |
766 } | 772 } |
767 | 773 |
768 } // namespace chromeos | 774 } // namespace chromeos |
OLD | NEW |