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/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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 if (!automation_ || !reply_message_.get()) { | 485 if (!automation_ || !reply_message_.get()) { |
486 delete this; | 486 delete this; |
487 return; | 487 return; |
488 } | 488 } |
489 | 489 |
490 switch (id_) { | 490 switch (id_) { |
491 case AutomationMsg_InstallExtension::ID: | 491 case AutomationMsg_InstallExtension::ID: |
492 AutomationMsg_InstallExtension::WriteReplyParams(reply_message_.get(), | 492 AutomationMsg_InstallExtension::WriteReplyParams(reply_message_.get(), |
493 response); | 493 response); |
494 break; | 494 break; |
495 case AutomationMsg_LoadExpandedExtension::ID: | |
496 AutomationMsg_LoadExpandedExtension::WriteReplyParams( | |
497 reply_message_.get(), response); | |
498 break; | |
499 default: | 495 default: |
500 NOTREACHED(); | 496 NOTREACHED(); |
501 break; | 497 break; |
502 } | 498 } |
503 | 499 |
504 automation_->Send(reply_message_.release()); | 500 automation_->Send(reply_message_.release()); |
505 } | 501 } |
506 | 502 |
507 ExtensionUninstallObserver::ExtensionUninstallObserver( | 503 ExtensionUninstallObserver::ExtensionUninstallObserver( |
508 AutomationProvider* automation, | 504 AutomationProvider* automation, |
(...skipping 1580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2089 this, | 2085 this, |
2090 &WaitForProcessLauncherThreadToGoIdleObserver::RunOnUIThread)); | 2086 &WaitForProcessLauncherThreadToGoIdleObserver::RunOnUIThread)); |
2091 } | 2087 } |
2092 | 2088 |
2093 void WaitForProcessLauncherThreadToGoIdleObserver::RunOnUIThread() { | 2089 void WaitForProcessLauncherThreadToGoIdleObserver::RunOnUIThread() { |
2094 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 2090 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
2095 if (automation_) | 2091 if (automation_) |
2096 automation_->Send(reply_message_.release()); | 2092 automation_->Send(reply_message_.release()); |
2097 Release(); | 2093 Release(); |
2098 } | 2094 } |
OLD | NEW |