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

Unified Diff: chrome/browser/extensions/api/settings_private/prefs_util.cc

Issue 2877173002: Add scale to settings-slider (Closed)
Patch Set: Less code in the |scale| comment. Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/settings/controls/settings_slider.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/settings_private/prefs_util.cc
diff --git a/chrome/browser/extensions/api/settings_private/prefs_util.cc b/chrome/browser/extensions/api/settings_private/prefs_util.cc
index 6a274bf1c18c4c920babce47d08b7c01966813ff..318550e797ea3c77acde5015d8d76913ee994b39 100644
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -543,8 +543,6 @@ PrefsUtil::SetPrefResult PrefsUtil::SetPref(const std::string& pref_name,
if (!pref)
return PREF_NOT_FOUND;
- DCHECK_EQ(pref->GetType(), value->GetType());
-
switch (pref->GetType()) {
case base::Value::Type::BOOLEAN:
case base::Value::Type::DOUBLE:
« no previous file with comments | « no previous file | chrome/browser/resources/settings/controls/settings_slider.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698