Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/prefs/browser_prefs.h" | 5 #include "chrome/browser/prefs/browser_prefs.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/files/file_util.h" | |
| 9 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
| 10 #include "base/trace_event/trace_event.h" | 11 #include "base/trace_event/trace_event.h" |
| 11 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 12 #include "chrome/browser/about_flags.h" | 13 #include "chrome/browser/about_flags.h" |
| 13 #include "chrome/browser/accessibility/invert_bubble_prefs.h" | 14 #include "chrome/browser/accessibility/invert_bubble_prefs.h" |
| 14 #include "chrome/browser/browser_process_impl.h" | 15 #include "chrome/browser/browser_process_impl.h" |
| 15 #include "chrome/browser/browser_shutdown.h" | 16 #include "chrome/browser/browser_shutdown.h" |
| 16 #include "chrome/browser/budget_service/background_budget_service.h" | 17 #include "chrome/browser/budget_service/background_budget_service.h" |
| 17 #include "chrome/browser/chrome_content_browser_client.h" | 18 #include "chrome/browser/chrome_content_browser_client.h" |
| 18 #include "chrome/browser/component_updater/recovery_component_installer.h" | 19 #include "chrome/browser/component_updater/recovery_component_installer.h" |
| (...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 702 metrics_service | 703 metrics_service |
| 703 ? base::Time::FromTimeT(metrics_service->GetInstallDate()) | 704 ? base::Time::FromTimeT(metrics_service->GetInstallDate()) |
| 704 : base::Time::Now(); | 705 : base::Time::Now(); |
| 705 profile_prefs->SetInt64(prefs::kDefaultBrowserLastDeclined, | 706 profile_prefs->SetInt64(prefs::kDefaultBrowserLastDeclined, |
| 706 install_time.ToInternalValue()); | 707 install_time.ToInternalValue()); |
| 707 } | 708 } |
| 708 profile_prefs->ClearPref(kCheckDefaultBrowser); | 709 profile_prefs->ClearPref(kCheckDefaultBrowser); |
| 709 | 710 |
| 710 // Added 5/2016. | 711 // Added 5/2016. |
| 711 profile_prefs->ClearPref(kDesktopSearchRedirectionInfobarShownPref); | 712 profile_prefs->ClearPref(kDesktopSearchRedirectionInfobarShownPref); |
| 713 | |
| 714 // Added 6/2016. | |
| 715 base::DeleteFile(profile->GetPath().Append("WebRTCIdentityStore"), false); | |
| 716 base::DeleteFile(profile->GetPath().Append("WebRTCIdentityStore-journal"), | |
| 717 false); | |
|
battre
2016/06/30 12:38:32
I don't think that you can call base::DeleteFile o
hbos_chromium
2016/06/30 15:28:17
Done.
| |
| 712 } | 718 } |
| 713 | 719 |
| 714 } // namespace chrome | 720 } // namespace chrome |
| OLD | NEW |