| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/extensions/extension_storage_monitor.h" | 5 #include "chrome/browser/extensions/extension_storage_monitor.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 | 644 |
| 645 return true; | 645 return true; |
| 646 } | 646 } |
| 647 | 647 |
| 648 void ExtensionStorageMonitor::SetStorageNotificationEnabled( | 648 void ExtensionStorageMonitor::SetStorageNotificationEnabled( |
| 649 const std::string& extension_id, | 649 const std::string& extension_id, |
| 650 bool enable_notifications) { | 650 bool enable_notifications) { |
| 651 extension_prefs_->UpdateExtensionPref( | 651 extension_prefs_->UpdateExtensionPref( |
| 652 extension_id, | 652 extension_id, |
| 653 kPrefDisableStorageNotifications, | 653 kPrefDisableStorageNotifications, |
| 654 enable_notifications ? NULL : new base::FundamentalValue(true)); | 654 enable_notifications ? NULL : new base::Value(true)); |
| 655 } | 655 } |
| 656 | 656 |
| 657 } // namespace extensions | 657 } // namespace extensions |
| OLD | NEW |