Moved from http://codereview.chromium.org/7811020/ (same CL but was on a read-only check-out)

BUG=94920 

-Related:
Check in a new CRX:
http://codereview.chromium.org/7828014/
Check in a few GYP changes:
http://codereview.chromium.org/7827021/

-Modified profile_impl to search for and auto-install apps found in DIR_DEFAULT_APPS when profile created 

-Added tracking code for number of extension installs and uninstalls and number of webstore visits.
Review URL: http://codereview.chromium.org/7839009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100727 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index dc4d403..59770e7 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -78,6 +78,7 @@
 #include "content/browser/plugin_process_host.h"
 #include "content/browser/plugin_service.h"
 #include "content/browser/renderer_host/render_process_host.h"
+#include "content/browser/user_metrics.h"
 #include "content/common/content_notification_types.h"
 #include "content/common/json_value_serializer.h"
 #include "content/common/notification_service.h"
@@ -956,6 +957,10 @@
     sync_bundle->synced_extensions.erase(extension_id);
   }
 
+  // Track the uninstallation.
+  UserMetrics::RecordAction(
+      UserMetricsAction("Extensions.ExtensionUninstalled"));
+
   return true;
 }