| 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/extensions/extension_browsertest.h" | 5 #include "chrome/browser/extensions/extension_browsertest.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 void ExtensionBrowserTest::ReloadExtension(const std::string& extension_id) { | 176 void ExtensionBrowserTest::ReloadExtension(const std::string& extension_id) { |
| 177 ExtensionService* service = browser()->profile()->GetExtensionService(); | 177 ExtensionService* service = browser()->profile()->GetExtensionService(); |
| 178 service->ReloadExtension(extension_id); | 178 service->ReloadExtension(extension_id); |
| 179 ui_test_utils::RegisterAndWait(this, | 179 ui_test_utils::RegisterAndWait(this, |
| 180 NotificationType::EXTENSION_LOADED, | 180 NotificationType::EXTENSION_LOADED, |
| 181 NotificationService::AllSources()); | 181 NotificationService::AllSources()); |
| 182 } | 182 } |
| 183 | 183 |
| 184 void ExtensionBrowserTest::UnloadExtension(const std::string& extension_id) { | 184 void ExtensionBrowserTest::UnloadExtension(const std::string& extension_id) { |
| 185 ExtensionService* service = browser()->profile()->GetExtensionService(); | 185 ExtensionService* service = browser()->profile()->GetExtensionService(); |
| 186 service->UnloadExtension(extension_id); | 186 service->UnloadExtension(extension_id, UnloadedExtensionInfo::DISABLE); |
| 187 } | 187 } |
| 188 | 188 |
| 189 void ExtensionBrowserTest::UninstallExtension(const std::string& extension_id) { | 189 void ExtensionBrowserTest::UninstallExtension(const std::string& extension_id) { |
| 190 ExtensionService* service = browser()->profile()->GetExtensionService(); | 190 ExtensionService* service = browser()->profile()->GetExtensionService(); |
| 191 service->UninstallExtension(extension_id, false); | 191 service->UninstallExtension(extension_id, false); |
| 192 } | 192 } |
| 193 | 193 |
| 194 void ExtensionBrowserTest::DisableExtension(const std::string& extension_id) { | 194 void ExtensionBrowserTest::DisableExtension(const std::string& extension_id) { |
| 195 ExtensionService* service = browser()->profile()->GetExtensionService(); | 195 ExtensionService* service = browser()->profile()->GetExtensionService(); |
| 196 service->DisableExtension(extension_id); | 196 service->DisableExtension(extension_id); |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 MessageLoopForUI::current()->Quit(); | 350 MessageLoopForUI::current()->Quit(); |
| 351 } | 351 } |
| 352 break; | 352 break; |
| 353 } | 353 } |
| 354 | 354 |
| 355 default: | 355 default: |
| 356 NOTREACHED(); | 356 NOTREACHED(); |
| 357 break; | 357 break; |
| 358 } | 358 } |
| 359 } | 359 } |
| OLD | NEW |