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

Side by Side Diff: components/ownership/owner_settings_service.cc

Issue 2476493003: Remove FundamentalValue
Patch Set: Fix Created 4 years, 1 month 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 "components/ownership/owner_settings_service.h" 5 #include "components/ownership/owner_settings_service.h"
6 6
7 #include <cryptohi.h> 7 #include <cryptohi.h>
8 #include <keyhi.h> 8 #include <keyhi.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 return base::PostTaskAndReplyWithResult( 111 return base::PostTaskAndReplyWithResult(
112 task_runner, 112 task_runner,
113 FROM_HERE, 113 FROM_HERE,
114 base::Bind( 114 base::Bind(
115 &AssembleAndSignPolicy, base::Passed(&policy), private_key_->key()), 115 &AssembleAndSignPolicy, base::Passed(&policy), private_key_->key()),
116 callback); 116 callback);
117 } 117 }
118 118
119 bool OwnerSettingsService::SetBoolean(const std::string& setting, bool value) { 119 bool OwnerSettingsService::SetBoolean(const std::string& setting, bool value) {
120 DCHECK(thread_checker_.CalledOnValidThread()); 120 DCHECK(thread_checker_.CalledOnValidThread());
121 base::FundamentalValue in_value(value); 121 base::Value in_value(value);
122 return Set(setting, in_value); 122 return Set(setting, in_value);
123 } 123 }
124 124
125 bool OwnerSettingsService::SetInteger(const std::string& setting, int value) { 125 bool OwnerSettingsService::SetInteger(const std::string& setting, int value) {
126 DCHECK(thread_checker_.CalledOnValidThread()); 126 DCHECK(thread_checker_.CalledOnValidThread());
127 base::FundamentalValue in_value(value); 127 base::Value in_value(value);
128 return Set(setting, in_value); 128 return Set(setting, in_value);
129 } 129 }
130 130
131 bool OwnerSettingsService::SetDouble(const std::string& setting, double value) { 131 bool OwnerSettingsService::SetDouble(const std::string& setting, double value) {
132 DCHECK(thread_checker_.CalledOnValidThread()); 132 DCHECK(thread_checker_.CalledOnValidThread());
133 base::FundamentalValue in_value(value); 133 base::Value in_value(value);
134 return Set(setting, in_value); 134 return Set(setting, in_value);
135 } 135 }
136 136
137 bool OwnerSettingsService::SetString(const std::string& setting, 137 bool OwnerSettingsService::SetString(const std::string& setting,
138 const std::string& value) { 138 const std::string& value) {
139 DCHECK(thread_checker_.CalledOnValidThread()); 139 DCHECK(thread_checker_.CalledOnValidThread());
140 base::StringValue in_value(value); 140 base::StringValue in_value(value);
141 return Set(setting, in_value); 141 return Set(setting, in_value);
142 } 142 }
143 143
(...skipping 16 matching lines...) Expand all
160 for (std::vector<IsOwnerCallback>::iterator it(is_owner_callbacks.begin()); 160 for (std::vector<IsOwnerCallback>::iterator it(is_owner_callbacks.begin());
161 it != is_owner_callbacks.end(); 161 it != is_owner_callbacks.end();
162 ++it) { 162 ++it) {
163 it->Run(is_owner); 163 it->Run(is_owner);
164 } 164 }
165 165
166 OnPostKeypairLoadedActions(); 166 OnPostKeypairLoadedActions();
167 } 167 }
168 168
169 } // namespace ownership 169 } // namespace ownership
OLDNEW
« no previous file with comments | « components/login/screens/screen_context.cc ('k') | components/password_manager/core/browser/password_manager_metrics_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698