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

Side by Side Diff: chrome/browser/ui/app_list/start_page_service.cc

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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/app_list/start_page_service.h" 5 #include "chrome/browser/ui/app_list/start_page_service.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/json/json_string_value_serializer.h" 13 #include "base/json/json_string_value_serializer.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/memory/singleton.h" 15 #include "base/memory/singleton.h"
16 #include "base/metrics/user_metrics.h" 16 #include "base/metrics/user_metrics.h"
17 #include "base/prefs/pref_service.h"
18 #include "base/strings/string_piece.h" 17 #include "base/strings/string_piece.h"
19 #include "build/build_config.h" 18 #include "build/build_config.h"
20 #include "chrome/browser/browser_process.h" 19 #include "chrome/browser/browser_process.h"
21 #include "chrome/browser/chrome_notification_types.h" 20 #include "chrome/browser/chrome_notification_types.h"
22 #include "chrome/browser/media/media_stream_devices_controller.h" 21 #include "chrome/browser/media/media_stream_devices_controller.h"
23 #include "chrome/browser/profiles/profile.h" 22 #include "chrome/browser/profiles/profile.h"
24 #include "chrome/browser/search/hotword_service.h" 23 #include "chrome/browser/search/hotword_service.h"
25 #include "chrome/browser/search/hotword_service_factory.h" 24 #include "chrome/browser/search/hotword_service_factory.h"
26 #include "chrome/browser/search_engines/template_url_service_factory.h" 25 #include "chrome/browser/search_engines/template_url_service_factory.h"
27 #include "chrome/browser/search_engines/ui_thread_search_terms_data.h" 26 #include "chrome/browser/search_engines/ui_thread_search_terms_data.h"
28 #include "chrome/browser/ui/app_list/speech_auth_helper.h" 27 #include "chrome/browser/ui/app_list/speech_auth_helper.h"
29 #include "chrome/browser/ui/app_list/speech_recognizer.h" 28 #include "chrome/browser/ui/app_list/speech_recognizer.h"
30 #include "chrome/browser/ui/app_list/start_page_observer.h" 29 #include "chrome/browser/ui/app_list/start_page_observer.h"
31 #include "chrome/browser/ui/app_list/start_page_service_factory.h" 30 #include "chrome/browser/ui/app_list/start_page_service_factory.h"
32 #include "chrome/browser/ui/browser_navigator.h" 31 #include "chrome/browser/ui/browser_navigator.h"
33 #include "chrome/browser/ui/browser_navigator_params.h" 32 #include "chrome/browser/ui/browser_navigator_params.h"
34 #include "chrome/browser/ui/browser_tabstrip.h" 33 #include "chrome/browser/ui/browser_tabstrip.h"
35 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h" 34 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h"
36 #include "chrome/common/chrome_switches.h" 35 #include "chrome/common/chrome_switches.h"
37 #include "chrome/common/pref_names.h" 36 #include "chrome/common/pref_names.h"
38 #include "chrome/common/url_constants.h" 37 #include "chrome/common/url_constants.h"
38 #include "components/prefs/pref_service.h"
39 #include "components/search_engines/template_url_prepopulate_data.h" 39 #include "components/search_engines/template_url_prepopulate_data.h"
40 #include "components/search_engines/template_url_service.h" 40 #include "components/search_engines/template_url_service.h"
41 #include "components/ui/zoom/zoom_controller.h" 41 #include "components/ui/zoom/zoom_controller.h"
42 #include "content/public/browser/browser_thread.h" 42 #include "content/public/browser/browser_thread.h"
43 #include "content/public/browser/notification_details.h" 43 #include "content/public/browser/notification_details.h"
44 #include "content/public/browser/notification_observer.h" 44 #include "content/public/browser/notification_observer.h"
45 #include "content/public/browser/notification_registrar.h" 45 #include "content/public/browser/notification_registrar.h"
46 #include "content/public/browser/notification_service.h" 46 #include "content/public/browser/notification_service.h"
47 #include "content/public/browser/notification_source.h" 47 #include "content/public/browser/notification_source.h"
48 #include "content/public/browser/render_view_host.h" 48 #include "content/public/browser/render_view_host.h"
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 700
701 // Check for a new doodle. 701 // Check for a new doodle.
702 content::BrowserThread::PostDelayedTask( 702 content::BrowserThread::PostDelayedTask(
703 content::BrowserThread::UI, FROM_HERE, 703 content::BrowserThread::UI, FROM_HERE,
704 base::Bind(&StartPageService::FetchDoodleJson, 704 base::Bind(&StartPageService::FetchDoodleJson,
705 weak_factory_.GetWeakPtr()), 705 weak_factory_.GetWeakPtr()),
706 recheck_delay); 706 recheck_delay);
707 } 707 }
708 708
709 } // namespace app_list 709 } // namespace app_list
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/google_now_extension.cc ('k') | chrome/browser/ui/app_list/test/fake_profile_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698