OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "base/path_service.h" | 7 #include "base/path_service.h" |
| 8 #include "base/process_util.h" |
8 #include "chrome/app/chrome_dll_resource.h" | 9 #include "chrome/app/chrome_dll_resource.h" |
9 #include "chrome/browser/automation/automation_provider_list.h" | 10 #include "chrome/browser/automation/automation_provider_list.h" |
10 #include "chrome/browser/automation/ui_controls.h" | 11 #include "chrome/browser/automation/ui_controls.h" |
11 #include "chrome/browser/automation/url_request_failed_dns_job.h" | 12 #include "chrome/browser/automation/url_request_failed_dns_job.h" |
12 #include "chrome/browser/automation/url_request_mock_http_job.h" | 13 #include "chrome/browser/automation/url_request_mock_http_job.h" |
13 #include "chrome/browser/automation/url_request_slow_download_job.h" | 14 #include "chrome/browser/automation/url_request_slow_download_job.h" |
14 #include "chrome/browser/browser_window.h" | 15 #include "chrome/browser/browser_window.h" |
15 #include "chrome/browser/dom_operation_notification_details.h" | 16 #include "chrome/browser/dom_operation_notification_details.h" |
16 #include "chrome/browser/download/download_manager.h" | 17 #include "chrome/browser/download/download_manager.h" |
17 #include "chrome/browser/download/save_package.h" | 18 #include "chrome/browser/download/save_package.h" |
(...skipping 2404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2422 int value) { | 2423 int value) { |
2423 bool success = false; | 2424 bool success = false; |
2424 if (browser_tracker_->ContainsHandle(handle)) { | 2425 if (browser_tracker_->ContainsHandle(handle)) { |
2425 Browser* browser = browser_tracker_->GetResource(handle); | 2426 Browser* browser = browser_tracker_->GetResource(handle); |
2426 browser->profile()->GetPrefs()->SetInteger(name.c_str(), value); | 2427 browser->profile()->GetPrefs()->SetInteger(name.c_str(), value); |
2427 success = true; | 2428 success = true; |
2428 } | 2429 } |
2429 Send(new AutomationMsg_SetIntPreferenceResponse(message.routing_id(), | 2430 Send(new AutomationMsg_SetIntPreferenceResponse(message.routing_id(), |
2430 success)); | 2431 success)); |
2431 } | 2432 } |
OLD | NEW |