| 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 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 return !disable_notifications; | 638 return !disable_notifications; |
| 639 } | 639 } |
| 640 | 640 |
| 641 return true; | 641 return true; |
| 642 } | 642 } |
| 643 | 643 |
| 644 void ExtensionStorageMonitor::SetStorageNotificationEnabled( | 644 void ExtensionStorageMonitor::SetStorageNotificationEnabled( |
| 645 const std::string& extension_id, | 645 const std::string& extension_id, |
| 646 bool enable_notifications) { | 646 bool enable_notifications) { |
| 647 extension_prefs_->UpdateExtensionPref( | 647 extension_prefs_->UpdateExtensionPref( |
| 648 extension_id, | 648 extension_id, kPrefDisableStorageNotifications, |
| 649 kPrefDisableStorageNotifications, | 649 enable_notifications ? NULL : new base::Value(true)); |
| 650 enable_notifications ? NULL : new base::FundamentalValue(true)); | |
| 651 } | 650 } |
| 652 | 651 |
| 653 } // namespace extensions | 652 } // namespace extensions |
| OLD | NEW |