[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());