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.h" | 10 #include "base/metrics/histogram_macros.h" |
11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "chrome/browser/chrome_notification_types.h" | 14 #include "chrome/browser/chrome_notification_types.h" |
15 #include "chrome/browser/extensions/extension_service.h" | 15 #include "chrome/browser/extensions/extension_service.h" |
16 #include "chrome/browser/extensions/extension_storage_monitor_factory.h" | 16 #include "chrome/browser/extensions/extension_storage_monitor_factory.h" |
17 #include "chrome/browser/extensions/extension_util.h" | 17 #include "chrome/browser/extensions/extension_util.h" |
18 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
19 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" | 19 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" |
20 #include "chrome/grit/generated_resources.h" | 20 #include "chrome/grit/generated_resources.h" |
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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::FundamentalValue(true)); |
655 } | 655 } |
656 | 656 |
657 } // namespace extensions | 657 } // namespace extensions |
OLD | NEW |