OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/automation/automation_provider.h" | 5 #include "chrome/browser/automation/automation_provider.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "app/message_box_flags.h" | 9 #include "app/message_box_flags.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 1659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1670 properties->SetString("BrowserProcessExecutableName", | 1670 properties->SetString("BrowserProcessExecutableName", |
1671 WideToUTF16Hack(chrome::kBrowserProcessExecutableName)); | 1671 WideToUTF16Hack(chrome::kBrowserProcessExecutableName)); |
1672 properties->SetString("HelperProcessExecutableName", | 1672 properties->SetString("HelperProcessExecutableName", |
1673 WideToUTF16Hack(chrome::kHelperProcessExecutableName)); | 1673 WideToUTF16Hack(chrome::kHelperProcessExecutableName)); |
1674 properties->SetString("BrowserProcessExecutablePath", | 1674 properties->SetString("BrowserProcessExecutablePath", |
1675 WideToUTF16Hack(chrome::kBrowserProcessExecutablePath)); | 1675 WideToUTF16Hack(chrome::kBrowserProcessExecutablePath)); |
1676 properties->SetString("HelperProcessExecutablePath", | 1676 properties->SetString("HelperProcessExecutablePath", |
1677 chrome::kHelperProcessExecutablePath); | 1677 chrome::kHelperProcessExecutablePath); |
1678 properties->SetString("command_line_string", | 1678 properties->SetString("command_line_string", |
1679 CommandLine::ForCurrentProcess()->command_line_string()); | 1679 CommandLine::ForCurrentProcess()->command_line_string()); |
| 1680 FilePath dumps_path; |
| 1681 PathService::Get(chrome::DIR_CRASH_DUMPS, &dumps_path); |
| 1682 properties->SetString("DIR_CRASH_DUMPS", dumps_path.value()); |
1680 | 1683 |
1681 std::string branding; | 1684 std::string branding; |
1682 #if defined(GOOGLE_CHROME_BUILD) | 1685 #if defined(GOOGLE_CHROME_BUILD) |
1683 branding = "Google Chrome"; | 1686 branding = "Google Chrome"; |
1684 #elif defined(CHROMIUM_BUILD) | 1687 #elif defined(CHROMIUM_BUILD) |
1685 branding = "Chromium"; | 1688 branding = "Chromium"; |
1686 #else | 1689 #else |
1687 branding = "Unknown Branding"; | 1690 branding = "Unknown Branding"; |
1688 #endif | 1691 #endif |
1689 properties->SetString("branding", branding); | 1692 properties->SetString("branding", branding); |
(...skipping 2648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4338 } | 4341 } |
4339 | 4342 |
4340 void AutomationProvider::WaitForPopupMenuToOpen(IPC::Message* reply_message) { | 4343 void AutomationProvider::WaitForPopupMenuToOpen(IPC::Message* reply_message) { |
4341 NOTIMPLEMENTED(); | 4344 NOTIMPLEMENTED(); |
4342 } | 4345 } |
4343 #endif // !defined(TOOLKIT_VIEWS) | 4346 #endif // !defined(TOOLKIT_VIEWS) |
4344 | 4347 |
4345 void AutomationProvider::ResetToDefaultTheme() { | 4348 void AutomationProvider::ResetToDefaultTheme() { |
4346 profile_->ClearTheme(); | 4349 profile_->ClearTheme(); |
4347 } | 4350 } |
OLD | NEW |