| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/extensions/chrome_extension_function.h" | 5 #include "chrome/browser/extensions/chrome_extension_function.h" |
| 6 | 6 |
| 7 #include "chrome/browser/extensions/window_controller.h" | 7 #include "chrome/browser/extensions/window_controller.h" |
| 8 #include "chrome/browser/extensions/window_controller_list.h" | 8 #include "chrome/browser/extensions/window_controller_list.h" |
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 Browser* browser = GetCurrentBrowser(); | 102 Browser* browser = GetCurrentBrowser(); |
| 103 if (!browser) | 103 if (!browser) |
| 104 return NULL; | 104 return NULL; |
| 105 return browser->tab_strip_model()->GetActiveWebContents(); | 105 return browser->tab_strip_model()->GetActiveWebContents(); |
| 106 } | 106 } |
| 107 | 107 |
| 108 ChromeAsyncExtensionFunction::~ChromeAsyncExtensionFunction() {} | 108 ChromeAsyncExtensionFunction::~ChromeAsyncExtensionFunction() {} |
| 109 | 109 |
| 110 ChromeSyncExtensionFunction::ChromeSyncExtensionFunction() {} | 110 ChromeSyncExtensionFunction::ChromeSyncExtensionFunction() {} |
| 111 | 111 |
| 112 void ChromeSyncExtensionFunction::Run() { SendResponse(RunImpl()); } | 112 void ChromeSyncExtensionFunction::RunImpl() { |
| 113 SendResponse(RunSync()); |
| 114 return true; |
| 115 } |
| 113 | 116 |
| 114 ChromeSyncExtensionFunction::~ChromeSyncExtensionFunction() {} | 117 ChromeSyncExtensionFunction::~ChromeSyncExtensionFunction() {} |
| OLD | NEW |