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

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

Issue 498773003: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (part 2 … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 | Annotate | Revision Log
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 "content/public/browser/web_ui.h" 14 #include "content/public/browser/web_ui.h"
14 #include "grit/generated_resources.h"
15 15
16 namespace { 16 namespace {
17 17
18 void OnDismissedAutomaticSettingsResetBanner(Profile* profile, 18 void OnDismissedAutomaticSettingsResetBanner(Profile* profile,
19 const base::ListValue* value) { 19 const base::ListValue* value) {
20 chrome_prefs::ClearResetTime(profile); 20 chrome_prefs::ClearResetTime(profile);
21 } 21 }
22 22
23 } // namespace 23 } // namespace
24 24
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 } 59 }
60 60
61 void AutomaticSettingsResetHandler::RegisterMessages() { 61 void AutomaticSettingsResetHandler::RegisterMessages() {
62 web_ui()->RegisterMessageCallback( 62 web_ui()->RegisterMessageCallback(
63 "onDismissedAutomaticSettingsResetBanner", 63 "onDismissedAutomaticSettingsResetBanner",
64 base::Bind(&OnDismissedAutomaticSettingsResetBanner, 64 base::Bind(&OnDismissedAutomaticSettingsResetBanner,
65 Profile::FromWebUI(web_ui()))); 65 Profile::FromWebUI(web_ui())));
66 } 66 }
67 67
68 } // namespace options 68 } // namespace options
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698