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

Side by Side Diff: chrome/browser/ui/webui/ntp/new_tab_page_sync_handler.h

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_PAGE_SYNC_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_PAGE_SYNC_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_PAGE_SYNC_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_PAGE_SYNC_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/prefs/pref_change_registrar.h"
13 #include "chrome/browser/sync/sync_ui_util.h" 12 #include "chrome/browser/sync/sync_ui_util.h"
14 #include "components/browser_sync/browser/profile_sync_service.h" 13 #include "components/browser_sync/browser/profile_sync_service.h"
14 #include "components/prefs/pref_change_registrar.h"
15 #include "content/public/browser/web_ui_message_handler.h" 15 #include "content/public/browser/web_ui_message_handler.h"
16 16
17 namespace base { 17 namespace base {
18 class ListValue; 18 class ListValue;
19 } 19 }
20 20
21 // Sends sync-state changes to the New Tab Page for UI updating and forwards 21 // Sends sync-state changes to the New Tab Page for UI updating and forwards
22 // link clicks on the page to the sync service. 22 // link clicks on the page to the sync service.
23 class NewTabPageSyncHandler : public content::WebUIMessageHandler, 23 class NewTabPageSyncHandler : public content::WebUIMessageHandler,
24 public sync_driver::SyncServiceObserver { 24 public sync_driver::SyncServiceObserver {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 PrefChangeRegistrar profile_pref_registrar_; 72 PrefChangeRegistrar profile_pref_registrar_;
73 73
74 // Used to make sure we don't register ourselves twice if the user refreshes 74 // Used to make sure we don't register ourselves twice if the user refreshes
75 // the new tab page. 75 // the new tab page.
76 bool waiting_for_initial_page_load_; 76 bool waiting_for_initial_page_load_;
77 77
78 DISALLOW_COPY_AND_ASSIGN(NewTabPageSyncHandler); 78 DISALLOW_COPY_AND_ASSIGN(NewTabPageSyncHandler);
79 }; 79 };
80 80
81 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_PAGE_SYNC_HANDLER_H_ 81 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_PAGE_SYNC_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/ntp/new_tab_page_handler.cc ('k') | chrome/browser/ui/webui/ntp/new_tab_page_sync_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698