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

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

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. 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
« no previous file with comments | « chrome/browser/ui/webui/gesture_config_ui.cc ('k') | chrome/browser/ui/webui/instant_ui.cc » ('j') | 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 22 matching lines...) Expand all
33 #include "grit/google_chrome_strings.h" 33 #include "grit/google_chrome_strings.h"
34 #include "ui/base/l10n/l10n_util.h" 34 #include "ui/base/l10n/l10n_util.h"
35 #include "ui/base/resource/resource_bundle.h" 35 #include "ui/base/resource/resource_bundle.h"
36 #include "v8/include/v8.h" 36 #include "v8/include/v8.h"
37 #include "webkit/glue/webkit_glue.h" 37 #include "webkit/glue/webkit_glue.h"
38 #include "webkit/user_agent/user_agent_util.h" 38 #include "webkit/user_agent/user_agent_util.h"
39 39
40 #if defined(OS_CHROMEOS) 40 #if defined(OS_CHROMEOS)
41 #include "base/files/file_util_proxy.h" 41 #include "base/files/file_util_proxy.h"
42 #include "base/i18n/time_formatting.h" 42 #include "base/i18n/time_formatting.h"
43 #include "base/prefs/pref_service.h"
43 #include "base/sys_info.h" 44 #include "base/sys_info.h"
44 #include "chrome/browser/chromeos/login/user_manager.h" 45 #include "chrome/browser/chromeos/login/user_manager.h"
45 #include "chrome/browser/chromeos/settings/cros_settings.h" 46 #include "chrome/browser/chromeos/settings/cros_settings.h"
46 #include "chrome/browser/prefs/pref_service.h"
47 #include "chrome/browser/profiles/profile.h" 47 #include "chrome/browser/profiles/profile.h"
48 #include "content/public/browser/browser_thread.h" 48 #include "content/public/browser/browser_thread.h"
49 #endif 49 #endif
50 50
51 using base::ListValue; 51 using base::ListValue;
52 using content::BrowserThread; 52 using content::BrowserThread;
53 53
54 namespace { 54 namespace {
55 55
56 // Returns the browser version as a string. 56 // Returns the browser version as a string.
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 434
435 // Note that this string will be internationalized. 435 // Note that this string will be internationalized.
436 string16 build_date = base::TimeFormatFriendlyDate(time); 436 string16 build_date = base::TimeFormatFriendlyDate(time);
437 g_build_date_string = Value::CreateStringValue(build_date); 437 g_build_date_string = Value::CreateStringValue(build_date);
438 } 438 }
439 439
440 web_ui()->CallJavascriptFunction("help.HelpPage.setBuildDate", 440 web_ui()->CallJavascriptFunction("help.HelpPage.setBuildDate",
441 *g_build_date_string); 441 *g_build_date_string);
442 } 442 }
443 #endif // defined(OS_CHROMEOS) 443 #endif // defined(OS_CHROMEOS)
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/gesture_config_ui.cc ('k') | chrome/browser/ui/webui/instant_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698