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

Side by Side Diff: chrome/browser/ui/webui/options/chromeos/power_handler.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/ui/webui/options/chromeos/power_handler.h" 5 #include "chrome/browser/ui/webui/options/chromeos/power_handler.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "ash/resources/grit/ash_resources.h" 9 #include "ash/resources/grit/ash_resources.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 dict->SetString("id", source.id); 159 dict->SetString("id", source.id);
160 dict->SetInteger("type", source.type); 160 dict->SetInteger("type", source.type);
161 dict->SetString("description", 161 dict->SetString("description",
162 l10n_util::GetStringUTF16(source.description_id)); 162 l10n_util::GetStringUTF16(source.description_id));
163 sources_list.Append(std::move(dict)); 163 sources_list.Append(std::move(dict));
164 } 164 }
165 165
166 web_ui()->CallJavascriptFunctionUnsafe( 166 web_ui()->CallJavascriptFunctionUnsafe(
167 "options.PowerOverlay.setPowerSources", sources_list, 167 "options.PowerOverlay.setPowerSources", sources_list,
168 base::StringValue(status->GetCurrentPowerSourceID()), 168 base::StringValue(status->GetCurrentPowerSourceID()),
169 base::FundamentalValue(status->IsUsbChargerConnected()), 169 base::Value(status->IsUsbChargerConnected()),
170 base::FundamentalValue(status->IsBatteryTimeBeingCalculated())); 170 base::Value(status->IsBatteryTimeBeingCalculated()));
171 } 171 }
172 172
173 } // namespace options 173 } // namespace options
174 } // namespace chromeos 174 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698