| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 void OnLoginSuccess(const std::string& username, | 154 void OnLoginSuccess(const std::string& username, |
| 155 const std::string& password, | 155 const std::string& password, |
| 156 bool pending_requests, | 156 bool pending_requests, |
| 157 bool using_oauth) { | 157 bool using_oauth) { |
| 158 pending_requests_ = pending_requests; | 158 pending_requests_ = pending_requests; |
| 159 if (!profile_prepared_) { | 159 if (!profile_prepared_) { |
| 160 // Will call OnProfilePrepared in the end. | 160 // Will call OnProfilePrepared in the end. |
| 161 LoginUtils::Get()->PrepareProfile(username, | 161 LoginUtils::Get()->PrepareProfile(username, |
| 162 std::string(), | 162 std::string(), |
| 163 password, | 163 password, |
| 164 pending_requests, | |
| 165 using_oauth, | 164 using_oauth, |
| 166 false, | 165 false, |
| 167 this); | 166 this); |
| 168 } else if (!pending_requests) { | 167 } else if (!pending_requests) { |
| 169 delete this; | 168 delete this; |
| 170 } | 169 } |
| 171 } | 170 } |
| 172 | 171 |
| 173 // LoginUtils::Delegate implementation: | 172 // LoginUtils::Delegate implementation: |
| 174 virtual void OnProfilePrepared(Profile* profile) { | 173 virtual void OnProfilePrepared(Profile* profile) { |
| (...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 810 trial->AppendGroup("2GB_RAM_3GB_swap", zram_group == '2' ? 1 : 0); | 809 trial->AppendGroup("2GB_RAM_3GB_swap", zram_group == '2' ? 1 : 0); |
| 811 trial->AppendGroup("4GB_RAM_no_swap", zram_group == '3' ? 1 : 0); | 810 trial->AppendGroup("4GB_RAM_no_swap", zram_group == '3' ? 1 : 0); |
| 812 trial->AppendGroup("4GB_RAM_4GB_swap", zram_group == '4' ? 1 : 0); | 811 trial->AppendGroup("4GB_RAM_4GB_swap", zram_group == '4' ? 1 : 0); |
| 813 trial->AppendGroup("4GB_RAM_6GB_swap", zram_group == '5' ? 1 : 0); | 812 trial->AppendGroup("4GB_RAM_6GB_swap", zram_group == '5' ? 1 : 0); |
| 814 trial->AppendGroup("snow_no_swap", zram_group == '6' ? 1 : 0); | 813 trial->AppendGroup("snow_no_swap", zram_group == '6' ? 1 : 0); |
| 815 trial->AppendGroup("snow_1GB_swap", zram_group == '7' ? 1 : 0); | 814 trial->AppendGroup("snow_1GB_swap", zram_group == '7' ? 1 : 0); |
| 816 trial->AppendGroup("snow_2GB_swap", zram_group == '8' ? 1 : 0); | 815 trial->AppendGroup("snow_2GB_swap", zram_group == '8' ? 1 : 0); |
| 817 } | 816 } |
| 818 | 817 |
| 819 } // namespace chromeos | 818 } // namespace chromeos |
| OLD | NEW |