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

Side by Side Diff: chrome/browser/chromeos/login/version_info_updater.cc

Issue 12314090: Add utf_string_conversions to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/chromeos/login/version_info_updater.h" 5 #include "chrome/browser/chromeos/login/version_info_updater.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 boot_times.system, 152 boot_times.system,
153 boot_times.chrome); 153 boot_times.chrome);
154 } else { 154 } else {
155 boot_times_text = 155 boot_times_text =
156 base::StringPrintf( 156 base::StringPrintf(
157 kBootTimesNoChromeExec, 157 kBootTimesNoChromeExec,
158 boot_times.total, 158 boot_times.total,
159 boot_times.pre_startup, 159 boot_times.pre_startup,
160 boot_times.system); 160 boot_times.system);
161 } 161 }
162 // Use UTF8ToWide once this string is localized. 162 // Use base::UTF8ToWide once this string is localized.
163 if (delegate_) 163 if (delegate_)
164 delegate_->OnBootTimesLabelTextUpdated(boot_times_text); 164 delegate_->OnBootTimesLabelTextUpdated(boot_times_text);
165 } 165 }
166 166
167 void VersionInfoUpdater::OnStoreLoaded(policy::CloudPolicyStore* store) { 167 void VersionInfoUpdater::OnStoreLoaded(policy::CloudPolicyStore* store) {
168 UpdateEnterpriseInfo(); 168 UpdateEnterpriseInfo();
169 } 169 }
170 170
171 void VersionInfoUpdater::OnStoreError(policy::CloudPolicyStore* store) { 171 void VersionInfoUpdater::OnStoreError(policy::CloudPolicyStore* store) {
172 UpdateEnterpriseInfo(); 172 UpdateEnterpriseInfo();
173 } 173 }
174 174
175 void VersionInfoUpdater::Observe( 175 void VersionInfoUpdater::Observe(
176 int type, 176 int type,
177 const content::NotificationSource& source, 177 const content::NotificationSource& source,
178 const content::NotificationDetails& details) { 178 const content::NotificationDetails& details) {
179 if (type == chrome::NOTIFICATION_SYSTEM_SETTING_CHANGED) 179 if (type == chrome::NOTIFICATION_SYSTEM_SETTING_CHANGED)
180 UpdateEnterpriseInfo(); 180 UpdateEnterpriseInfo();
181 else 181 else
182 NOTREACHED(); 182 NOTREACHED();
183 } 183 }
184 184
185 } // namespace chromeos 185 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/chromeos/login/wizard_controller_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698