| 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 "extensions/browser/extension_prefs.h" |     5 #include "extensions/browser/extension_prefs.h" | 
|     6  |     6  | 
|     7 #include <iterator> |     7 #include <iterator> | 
|     8  |     8  | 
|     9 #include "base/command_line.h" |     9 #include "base/command_line.h" | 
|    10 #include "base/prefs/pref_notifier.h" |    10 #include "base/prefs/pref_notifier.h" | 
| (...skipping 1897 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1908                 kPrefNextStorageThreshold, |  1908                 kPrefNextStorageThreshold, | 
|  1909                 &next_threshold)) { |  1909                 &next_threshold)) { | 
|  1910     return next_threshold; |  1910     return next_threshold; | 
|  1911   } |  1911   } | 
|  1912  |  1912  | 
|  1913   return 0; |  1913   return 0; | 
|  1914 } |  1914 } | 
|  1915  |  1915  | 
|  1916 void ExtensionPrefs::SetNextStorageThreshold(const std::string& extension_id, |  1916 void ExtensionPrefs::SetNextStorageThreshold(const std::string& extension_id, | 
|  1917                                              int64 next_threshold) { |  1917                                              int64 next_threshold) { | 
|  1918  |  | 
|  1919   ScopedExtensionPrefUpdate update(prefs_, extension_id); |  1918   ScopedExtensionPrefUpdate update(prefs_, extension_id); | 
|  1920   SaveInt64(update.Get(), kPrefNextStorageThreshold, next_threshold); |  1919   SaveInt64(update.Get(), kPrefNextStorageThreshold, next_threshold); | 
|  1921 } |  1920 } | 
|  1922  |  1921  | 
|  1923 bool ExtensionPrefs::IsStorageNotificationEnabled( |  1922 bool ExtensionPrefs::IsStorageNotificationEnabled( | 
|  1924     const std::string& extension_id) const { |  1923     const std::string& extension_id) const { | 
|  1925   bool disable_notifications; |  1924   bool disable_notifications; | 
|  1926   if (ReadPrefAsBoolean(extension_id, |  1925   if (ReadPrefAsBoolean(extension_id, | 
|  1927                         kPrefDisableStorageNotifications, |  1926                         kPrefDisableStorageNotifications, | 
|  1928                         &disable_notifications)) { |  1927                         &disable_notifications)) { | 
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2220   extension_pref_value_map_->RegisterExtension( |  2219   extension_pref_value_map_->RegisterExtension( | 
|  2221       extension_id, install_time, is_enabled, is_incognito_enabled); |  2220       extension_id, install_time, is_enabled, is_incognito_enabled); | 
|  2222  |  2221  | 
|  2223   FOR_EACH_OBSERVER( |  2222   FOR_EACH_OBSERVER( | 
|  2224       ExtensionPrefsObserver, |  2223       ExtensionPrefsObserver, | 
|  2225       observer_list_, |  2224       observer_list_, | 
|  2226       OnExtensionRegistered(extension_id, install_time, is_enabled)); |  2225       OnExtensionRegistered(extension_id, install_time, is_enabled)); | 
|  2227 } |  2226 } | 
|  2228  |  2227  | 
|  2229 }  // namespace extensions |  2228 }  // namespace extensions | 
| OLD | NEW |