Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(338)

Side by Side Diff: chrome/browser/extensions/extension_storage_monitor.cc

Issue 2666093002: Remove base::FundamentalValue (Closed)
Patch Set: Rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_service_unittest.cc ('k') | chrome/browser/extensions/extension_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698