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/common/service_process_util.h" | 5 #include "chrome/common/service_process_util.h" |
6 | 6 |
7 #include "base/basictypes.h" | |
8 #include "base/bind.h" | 7 #include "base/bind.h" |
9 #include "base/command_line.h" | 8 #include "base/command_line.h" |
10 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
11 #include "base/location.h" | 10 #include "base/location.h" |
12 #include "base/process/kill.h" | 11 #include "base/process/kill.h" |
13 #include "base/process/launch.h" | 12 #include "base/process/launch.h" |
14 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
15 #include "base/strings/string_split.h" | 14 #include "base/strings/string_split.h" |
| 15 #include "build/build_config.h" |
16 | 16 |
17 #if !defined(OS_MACOSX) | 17 #if !defined(OS_MACOSX) |
18 #include "base/at_exit.h" | 18 #include "base/at_exit.h" |
19 #include "base/memory/scoped_ptr.h" | 19 #include "base/memory/scoped_ptr.h" |
20 #include "base/strings/string_util.h" | 20 #include "base/strings/string_util.h" |
21 #include "base/strings/utf_string_conversions.h" | 21 #include "base/strings/utf_string_conversions.h" |
22 #include "base/test/multiprocess_test.h" | 22 #include "base/test/multiprocess_test.h" |
23 #include "base/test/test_timeouts.h" | 23 #include "base/test/test_timeouts.h" |
24 #include "base/threading/thread.h" | 24 #include "base/threading/thread.h" |
25 #include "chrome/common/chrome_switches.h" | 25 #include "chrome/common/chrome_switches.h" |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 ScopedAttributesRestorer restorer(bundle_path(), 0777); | 419 ScopedAttributesRestorer restorer(bundle_path(), 0777); |
420 GetIOMessageLoopProxy()->PostTask( | 420 GetIOMessageLoopProxy()->PostTask( |
421 FROM_HERE, | 421 FROM_HERE, |
422 base::Bind(&ChangeAttr, bundle_path(), 0222)); | 422 base::Bind(&ChangeAttr, bundle_path(), 0222)); |
423 Run(); | 423 Run(); |
424 ASSERT_TRUE(mock_launchd()->remove_called()); | 424 ASSERT_TRUE(mock_launchd()->remove_called()); |
425 ASSERT_TRUE(mock_launchd()->delete_called()); | 425 ASSERT_TRUE(mock_launchd()->delete_called()); |
426 } | 426 } |
427 | 427 |
428 #endif // !OS_MACOSX | 428 #endif // !OS_MACOSX |
OLD | NEW |