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

Side by Side Diff: chrome/browser/ui/webui/options/automatic_settings_reset_handler.cc

Issue 530963002: Move IDS_LEARN_MORE to components_strings.grd (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build Created 6 years, 3 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/automatic_settings_reset_handler.h" 5 #include "chrome/browser/ui/webui/options/automatic_settings_reset_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "chrome/browser/prefs/chrome_pref_service_factory.h" 10 #include "chrome/browser/prefs/chrome_pref_service_factory.h"
11 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/common/url_constants.h" 12 #include "chrome/common/url_constants.h"
13 #include "chrome/grit/generated_resources.h" 13 #include "chrome/grit/generated_resources.h"
14 #include "content/public/browser/web_ui.h" 14 #include "content/public/browser/web_ui.h"
15 #include "grit/components_strings.h"
15 16
16 namespace { 17 namespace {
17 18
18 void OnDismissedAutomaticSettingsResetBanner(Profile* profile, 19 void OnDismissedAutomaticSettingsResetBanner(Profile* profile,
19 const base::ListValue* value) { 20 const base::ListValue* value) {
20 chrome_prefs::ClearResetTime(profile); 21 chrome_prefs::ClearResetTime(profile);
21 } 22 }
22 23
23 } // namespace 24 } // namespace
24 25
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 } 60 }
60 61
61 void AutomaticSettingsResetHandler::RegisterMessages() { 62 void AutomaticSettingsResetHandler::RegisterMessages() {
62 web_ui()->RegisterMessageCallback( 63 web_ui()->RegisterMessageCallback(
63 "onDismissedAutomaticSettingsResetBanner", 64 "onDismissedAutomaticSettingsResetBanner",
64 base::Bind(&OnDismissedAutomaticSettingsResetBanner, 65 base::Bind(&OnDismissedAutomaticSettingsResetBanner,
65 Profile::FromWebUI(web_ui()))); 66 Profile::FromWebUI(web_ui())));
66 } 67 }
67 68
68 } // namespace options 69 } // namespace options
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/ntp/ntp_resource_cache.cc ('k') | chrome/browser/ui/webui/options/core_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698