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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 void OnLoginSuccess(const std::string& username, | 151 void OnLoginSuccess(const std::string& username, |
152 const std::string& password, | 152 const std::string& password, |
153 bool pending_requests, | 153 bool pending_requests, |
154 bool using_oauth) { | 154 bool using_oauth) { |
155 pending_requests_ = pending_requests; | 155 pending_requests_ = pending_requests; |
156 if (!profile_prepared_) { | 156 if (!profile_prepared_) { |
157 // Will call OnProfilePrepared in the end. | 157 // Will call OnProfilePrepared in the end. |
158 LoginUtils::Get()->PrepareProfile(username, | 158 LoginUtils::Get()->PrepareProfile(username, |
159 std::string(), | 159 std::string(), |
160 password, | 160 password, |
161 pending_requests, | |
162 using_oauth, | 161 using_oauth, |
163 false, | 162 false, |
164 this); | 163 this); |
165 } else if (!pending_requests) { | 164 } else if (!pending_requests) { |
166 delete this; | 165 delete this; |
167 } | 166 } |
168 } | 167 } |
169 | 168 |
170 // LoginUtils::Delegate implementation: | 169 // LoginUtils::Delegate implementation: |
171 virtual void OnProfilePrepared(Profile* profile) { | 170 virtual void OnProfilePrepared(Profile* profile) { |
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
747 } else if (trial->group() == margin_200mb) { | 746 } else if (trial->group() == margin_200mb) { |
748 LOG(WARNING) << "low_mem: Part of '200MB' experiment"; | 747 LOG(WARNING) << "low_mem: Part of '200MB' experiment"; |
749 LowMemoryObserver::SetLowMemoryMargin(200); | 748 LowMemoryObserver::SetLowMemoryMargin(200); |
750 } else { | 749 } else { |
751 LOG(WARNING) << "low_mem: Part of 'default' experiment"; | 750 LOG(WARNING) << "low_mem: Part of 'default' experiment"; |
752 } | 751 } |
753 } | 752 } |
754 } | 753 } |
755 | 754 |
756 } // namespace chromeos | 755 } // namespace chromeos |
OLD | NEW |