| 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/browser/automation/automation_provider_observers.h" | 5 #include "chrome/browser/automation/automation_provider_observers.h" |
| 6 | 6 |
| 7 #include <deque> | 7 #include <deque> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 880 content::Details<bool> close_app(details); | 880 content::Details<bool> close_app(details); |
| 881 | 881 |
| 882 if (use_json_interface_) { | 882 if (use_json_interface_) { |
| 883 AutomationJSONReply(automation_, | 883 AutomationJSONReply(automation_, |
| 884 reply_message_.release()).SendSuccess(NULL); | 884 reply_message_.release()).SendSuccess(NULL); |
| 885 } else { | 885 } else { |
| 886 if (for_browser_command_) { | 886 if (for_browser_command_) { |
| 887 AutomationMsg_WindowExecuteCommand::WriteReplyParams(reply_message_.get(), | 887 AutomationMsg_WindowExecuteCommand::WriteReplyParams(reply_message_.get(), |
| 888 true); | 888 true); |
| 889 } else { | 889 } else { |
| 890 AutomationMsg_CloseBrowser::WriteReplyParams(reply_message_.get(), true, | 890 AutomationMsg_CloseBrowser::WriteReplyParams(reply_message_.get(), true); |
| 891 *(close_app.ptr())); | |
| 892 } | 891 } |
| 893 automation_->Send(reply_message_.release()); | 892 automation_->Send(reply_message_.release()); |
| 894 } | 893 } |
| 895 delete this; | 894 delete this; |
| 896 } | 895 } |
| 897 | 896 |
| 898 void BrowserClosedNotificationObserver::set_for_browser_command( | 897 void BrowserClosedNotificationObserver::set_for_browser_command( |
| 899 bool for_browser_command) { | 898 bool for_browser_command) { |
| 900 for_browser_command_ = for_browser_command; | 899 for_browser_command_ = for_browser_command; |
| 901 } | 900 } |
| (...skipping 2249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3151 if (automation_) { | 3150 if (automation_) { |
| 3152 AutomationJSONReply(automation_, reply_message_.release()) | 3151 AutomationJSONReply(automation_, reply_message_.release()) |
| 3153 .SendSuccess(NULL); | 3152 .SendSuccess(NULL); |
| 3154 } | 3153 } |
| 3155 delete this; | 3154 delete this; |
| 3156 } | 3155 } |
| 3157 } else { | 3156 } else { |
| 3158 NOTREACHED(); | 3157 NOTREACHED(); |
| 3159 } | 3158 } |
| 3160 } | 3159 } |
| OLD | NEW |