OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/chrome_browser_main.h" | 5 #include "chrome/browser/chrome_browser_main.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 1525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1536 parsed_command_line().GetSwitchValueASCII(switches::kLoginUser); | 1536 parsed_command_line().GetSwitchValueASCII(switches::kLoginUser); |
1537 VLOG(1) << "Relaunching browser for user: " << username; | 1537 VLOG(1) << "Relaunching browser for user: " << username; |
1538 chromeos::UserManager::Get()->UserLoggedIn(username); | 1538 chromeos::UserManager::Get()->UserLoggedIn(username); |
1539 | 1539 |
1540 // Redirects Chrome logging to the user data dir. | 1540 // Redirects Chrome logging to the user data dir. |
1541 logging::RedirectChromeLogging(parsed_command_line()); | 1541 logging::RedirectChromeLogging(parsed_command_line()); |
1542 | 1542 |
1543 // Initialize user policy before creating the profile so the profile | 1543 // Initialize user policy before creating the profile so the profile |
1544 // initialization code sees policy settings. | 1544 // initialization code sees policy settings. |
1545 g_browser_process->browser_policy_connector()->InitializeUserPolicy( | 1545 g_browser_process->browser_policy_connector()->InitializeUserPolicy( |
1546 username); | 1546 username, false /* wait_for_policy_fetch */); |
1547 } | 1547 } |
1548 #endif | 1548 #endif |
1549 | 1549 |
1550 if (is_first_run) { | 1550 if (is_first_run) { |
1551 // Warn the ProfileManager that an import process will run, possibly | 1551 // Warn the ProfileManager that an import process will run, possibly |
1552 // locking the WebDataService directory of the next Profile created. | 1552 // locking the WebDataService directory of the next Profile created. |
1553 g_browser_process->profile_manager()->SetWillImport(); | 1553 g_browser_process->profile_manager()->SetWillImport(); |
1554 } | 1554 } |
1555 | 1555 |
1556 profile_ = CreateProfile(parameters(), user_data_dir, parsed_command_line()); | 1556 profile_ = CreateProfile(parameters(), user_data_dir, parsed_command_line()); |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2086 if (env->GetVar(chrome::kPreReadEnvironmentVariable, &pre_read) && | 2086 if (env->GetVar(chrome::kPreReadEnvironmentVariable, &pre_read) && |
2087 (pre_read == "0" || pre_read == "1")) { | 2087 (pre_read == "0" || pre_read == "1")) { |
2088 std::string uma_name(name); | 2088 std::string uma_name(name); |
2089 uma_name += "_PreRead"; | 2089 uma_name += "_PreRead"; |
2090 uma_name += pre_read == "1" ? "Enabled" : "Disabled"; | 2090 uma_name += pre_read == "1" ? "Enabled" : "Disabled"; |
2091 AddPreReadHistogramTime(uma_name.c_str(), time); | 2091 AddPreReadHistogramTime(uma_name.c_str(), time); |
2092 } | 2092 } |
2093 #endif | 2093 #endif |
2094 #endif | 2094 #endif |
2095 } | 2095 } |
OLD | NEW |