commit | 45479015e46065b1e41cd0f412c2d6b55c0d0417 | [log] [tgz] |
---|---|---|
author | Minh X. Nguyen <[email protected]> | Fri Aug 18 21:35:36 2017 |
committer | Commit Bot <[email protected]> | Fri Aug 18 21:35:36 2017 |
tree | e645bba84212dfa88c0a5d4240683c8ab9ef098c | |
parent | 71cc44db52801a26d60ac1111139878c554f290e [diff] [blame] |
[Extensions] Move Extension::DisableReason to its own file Bug: Change-Id: I513ed197833c01fabe099d7d4df862b9f89c3e57 Move DisableReason enum out of the Extension class to its own file in extensions/common/disable_reason.h. This allows sources to depend on the disable reason enum without needing to depend on the Extension class directly. Change-Id: I513ed197833c01fabe099d7d4df862b9f89c3e57 Reviewed-on: https://chromium-review.googlesource.com/606553 Commit-Queue: Minh Nguyen <[email protected]> Reviewed-by: Ilya Sherman <[email protected]> Reviewed-by: Scott Violet <[email protected]> Reviewed-by: Nicolas Zea <[email protected]> Reviewed-by: Devlin <[email protected]> Cr-Commit-Position: refs/heads/master@{#495694}
diff --git a/chrome/browser/extensions/chrome_app_api_browsertest.cc b/chrome/browser/extensions/chrome_app_api_browsertest.cc index 2c23404..e65478b0 100644 --- a/chrome/browser/extensions/chrome_app_api_browsertest.cc +++ b/chrome/browser/extensions/chrome_app_api_browsertest.cc
@@ -201,8 +201,9 @@ // Disable the extension and verify the state. ExtensionService* service = extensions::ExtensionSystem::Get( browser()->profile())->extension_service(); - service->DisableExtension(extension->id(), - Extension::DISABLE_PERMISSIONS_INCREASE); + service->DisableExtension( + extension->id(), + extensions::disable_reason::DISABLE_PERMISSIONS_INCREASE); ui_test_utils::NavigateToURL(browser(), app_url); EXPECT_EQ("disabled", InstallStateInMainFrame());