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/chromeos/login/login_utils.h" | 5 #include "chrome/browser/chromeos/login/login_utils.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 CrosLibrary::Get()->GetLoginLibrary()->RestartJob(getpid(), cmd_line_str); | 714 CrosLibrary::Get()->GetLoginLibrary()->RestartJob(getpid(), cmd_line_str); |
715 } | 715 } |
716 } | 716 } |
717 | 717 |
718 std::string LoginUtilsImpl::GetOffTheRecordCommandLine( | 718 std::string LoginUtilsImpl::GetOffTheRecordCommandLine( |
719 const GURL& start_url, | 719 const GURL& start_url, |
720 const CommandLine& base_command_line, | 720 const CommandLine& base_command_line, |
721 CommandLine* command_line) { | 721 CommandLine* command_line) { |
722 static const char* kForwardSwitches[] = { | 722 static const char* kForwardSwitches[] = { |
723 switches::kEnableLogging, | 723 switches::kEnableLogging, |
724 switches::kEnableAcceleratedPlugins, | 724 switches::kDisableAcceleratedPlugins, |
725 switches::kUseGL, | 725 switches::kUseGL, |
726 switches::kUserDataDir, | 726 switches::kUserDataDir, |
727 switches::kScrollPixels, | 727 switches::kScrollPixels, |
728 switches::kEnableGView, | 728 switches::kEnableGView, |
729 switches::kNoFirstRun, | 729 switches::kNoFirstRun, |
730 switches::kLoginProfile, | 730 switches::kLoginProfile, |
731 switches::kCompressSystemFeedback, | 731 switches::kCompressSystemFeedback, |
732 switches::kDisableSeccompSandbox, | 732 switches::kDisableSeccompSandbox, |
733 switches::kPpapiFlashInProcess, | 733 switches::kPpapiFlashInProcess, |
734 switches::kPpapiFlashPath, | 734 switches::kPpapiFlashPath, |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1036 // Mark login host for deletion after browser starts. This | 1036 // Mark login host for deletion after browser starts. This |
1037 // guarantees that the message loop will be referenced by the | 1037 // guarantees that the message loop will be referenced by the |
1038 // browser before it is dereferenced by the login host. | 1038 // browser before it is dereferenced by the login host. |
1039 if (login_host) { | 1039 if (login_host) { |
1040 login_host->OnSessionStart(); | 1040 login_host->OnSessionStart(); |
1041 login_host = NULL; | 1041 login_host = NULL; |
1042 } | 1042 } |
1043 } | 1043 } |
1044 | 1044 |
1045 } // namespace chromeos | 1045 } // namespace chromeos |
OLD | NEW |