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

Side by Side Diff: chrome/browser/ui/webui/help/help_handler.cc

Issue 10690060: startup: Put it in chrome namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
« no previous file with comments | « chrome/browser/ui/startup/startup_types.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/ui/webui/help/help_handler.h" 5 #include "chrome/browser/ui/webui/help/help_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 #endif 165 #endif
166 }; 166 };
167 167
168 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(resources); ++i) { 168 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(resources); ++i) {
169 localized_strings->SetString(resources[i].name, 169 localized_strings->SetString(resources[i].name,
170 l10n_util::GetStringUTF16(resources[i].ids)); 170 l10n_util::GetStringUTF16(resources[i].ids));
171 } 171 }
172 172
173 #if defined(OS_MACOSX) 173 #if defined(OS_MACOSX)
174 localized_strings->SetString("updateObsoleteOS", 174 localized_strings->SetString("updateObsoleteOS",
175 browser::LocalizedObsoleteOSString()); 175 chrome::LocalizedObsoleteOSString());
176 localized_strings->SetString("updateObsoleteOSURL", 176 localized_strings->SetString("updateObsoleteOSURL",
177 chrome::kMacLeopardObsoleteURL); 177 chrome::kMacLeopardObsoleteURL);
178 #endif 178 #endif
179 179
180 localized_strings->SetString( 180 localized_strings->SetString(
181 "browserVersion", 181 "browserVersion",
182 l10n_util::GetStringFUTF16(IDS_ABOUT_PRODUCT_VERSION, 182 l10n_util::GetStringFUTF16(IDS_ABOUT_PRODUCT_VERSION,
183 BuildBrowserVersionString())); 183 BuildBrowserVersionString()));
184 184
185 string16 license = l10n_util::GetStringFUTF16( 185 string16 license = l10n_util::GetStringFUTF16(
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 #endif 289 #endif
290 ); 290 );
291 291
292 #if defined(OS_CHROMEOS) 292 #if defined(OS_CHROMEOS)
293 version_updater_->GetReleaseChannel( 293 version_updater_->GetReleaseChannel(
294 base::Bind(&HelpHandler::OnReleaseChannel, base::Unretained(this))); 294 base::Bind(&HelpHandler::OnReleaseChannel, base::Unretained(this)));
295 #endif 295 #endif
296 296
297 #if defined(OS_MACOSX) 297 #if defined(OS_MACOSX)
298 scoped_ptr<base::Value> is_os_obsolete( 298 scoped_ptr<base::Value> is_os_obsolete(
299 base::Value::CreateBooleanValue(browser::IsOSObsoleteOrNearlySo())); 299 base::Value::CreateBooleanValue(chrome::IsOSObsoleteOrNearlySo()));
300 web_ui()->CallJavascriptFunction("help.HelpPage.setObsoleteOS", 300 web_ui()->CallJavascriptFunction("help.HelpPage.setObsoleteOS",
301 *is_os_obsolete); 301 *is_os_obsolete);
302 #endif 302 #endif
303 } 303 }
304 304
305 #if defined(OS_MACOSX) 305 #if defined(OS_MACOSX)
306 void HelpHandler::PromoteUpdater(const ListValue* args) { 306 void HelpHandler::PromoteUpdater(const ListValue* args) {
307 version_updater_->PromoteUpdater(); 307 version_updater_->PromoteUpdater();
308 } 308 }
309 #endif 309 #endif
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 451
452 // Note that this string will be internationalized. 452 // Note that this string will be internationalized.
453 string16 last_updated = base::TimeFormatFriendlyDate(time); 453 string16 last_updated = base::TimeFormatFriendlyDate(time);
454 g_last_updated_string = Value::CreateStringValue(last_updated); 454 g_last_updated_string = Value::CreateStringValue(last_updated);
455 } 455 }
456 456
457 web_ui()->CallJavascriptFunction("help.HelpPage.setLastUpdated", 457 web_ui()->CallJavascriptFunction("help.HelpPage.setLastUpdated",
458 *g_last_updated_string); 458 *g_last_updated_string);
459 } 459 }
460 #endif // defined(OS_CHROMEOS) 460 #endif // defined(OS_CHROMEOS)
OLDNEW
« no previous file with comments | « chrome/browser/ui/startup/startup_types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698