shill: Add metric to track corrupted profiles

New metric Network.Shill.CorruptedProfile.

BUG=chromium-os:38669
TEST=1. Unit tests
     2. Stop shill
        Corrupt /var/cache/shill/default.profile by adding junk
        Start shill
        Verify new metric appears in chrome://histograms

Change-Id: I629ed00884ecd2d2fe90744583bd72bf2e9e6af4
Reviewed-on: https://gerrit.chromium.org/gerrit/43556
Reviewed-by: Thieu Le <thieule@chromium.org>
Tested-by: Thieu Le <thieule@chromium.org>
Commit-Queue: Thieu Le <thieule@chromium.org>
diff --git a/wifi_service_unittest.cc b/wifi_service_unittest.cc
index e8cf2b1..d5430fd 100644
--- a/wifi_service_unittest.cc
+++ b/wifi_service_unittest.cc
@@ -431,7 +431,7 @@
   Error error;
   WiFiServiceRefPtr wifi_service = MakeServiceWithWiFi(flimflam::kSecurityNone);
   scoped_refptr<MockProfile> mock_profile(
-      new NiceMock<MockProfile>(control_interface(), manager()));
+      new NiceMock<MockProfile>(control_interface(), metrics(), manager()));
   wifi_service->set_profile(mock_profile);
   // With nothing else going on, the service should attempt to connect.
   EXPECT_CALL(*wifi(), ConnectTo(wifi_service.get(), _));