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

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

Issue 2276823003: Change many chrome/browser includes to use qualified paths. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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/macros.h" 9 #include "base/macros.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 #include "chrome/browser/prefs/chrome_pref_service_factory.h" 11 #include "chrome/browser/prefs/chrome_pref_service_factory.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/common/url_constants.h" 13 #include "chrome/common/url_constants.h"
14 #include "chrome/grit/generated_resources.h" 14 #include "chrome/grit/generated_resources.h"
15 #include "components/strings/grit/components_strings.h"
15 #include "content/public/browser/web_ui.h" 16 #include "content/public/browser/web_ui.h"
16 #include "grit/components_strings.h"
17 17
18 namespace { 18 namespace {
19 19
20 void OnDismissedAutomaticSettingsResetBanner(Profile* profile, 20 void OnDismissedAutomaticSettingsResetBanner(Profile* profile,
21 const base::ListValue* value) { 21 const base::ListValue* value) {
22 chrome_prefs::ClearResetTime(profile); 22 chrome_prefs::ClearResetTime(profile);
23 } 23 }
24 24
25 } // namespace 25 } // namespace
26 26
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 } 62 }
63 63
64 void AutomaticSettingsResetHandler::RegisterMessages() { 64 void AutomaticSettingsResetHandler::RegisterMessages() {
65 web_ui()->RegisterMessageCallback( 65 web_ui()->RegisterMessageCallback(
66 "onDismissedAutomaticSettingsResetBanner", 66 "onDismissedAutomaticSettingsResetBanner",
67 base::Bind(&OnDismissedAutomaticSettingsResetBanner, 67 base::Bind(&OnDismissedAutomaticSettingsResetBanner,
68 Profile::FromWebUI(web_ui()))); 68 Profile::FromWebUI(web_ui())));
69 } 69 }
70 70
71 } // namespace options 71 } // namespace options
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698