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

Side by Side Diff: chrome/browser/search/hotword_service.cc

Issue 1548133002: Switch to standard integer types in chrome/browser/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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/search/hotword_service.h" 5 #include "chrome/browser/search/hotword_service.h"
6 6
7 #include <stddef.h>
8
7 #include <string> 9 #include <string>
8 10
9 #include "base/command_line.h" 11 #include "base/command_line.h"
10 #include "base/i18n/case_conversion.h" 12 #include "base/i18n/case_conversion.h"
11 #include "base/location.h" 13 #include "base/location.h"
14 #include "base/macros.h"
12 #include "base/message_loop/message_loop.h" 15 #include "base/message_loop/message_loop.h"
13 #include "base/metrics/field_trial.h" 16 #include "base/metrics/field_trial.h"
14 #include "base/metrics/histogram.h" 17 #include "base/metrics/histogram.h"
15 #include "base/metrics/sparse_histogram.h" 18 #include "base/metrics/sparse_histogram.h"
16 #include "base/path_service.h" 19 #include "base/path_service.h"
17 #include "base/prefs/pref_service.h" 20 #include "base/prefs/pref_service.h"
18 #include "base/single_thread_task_runner.h" 21 #include "base/single_thread_task_runner.h"
19 #include "base/thread_task_runner_handle.h" 22 #include "base/thread_task_runner_handle.h"
23 #include "build/build_config.h"
20 #include "chrome/browser/browser_process.h" 24 #include "chrome/browser/browser_process.h"
21 #include "chrome/browser/chrome_notification_types.h" 25 #include "chrome/browser/chrome_notification_types.h"
22 #include "chrome/browser/extensions/api/hotword_private/hotword_private_api.h" 26 #include "chrome/browser/extensions/api/hotword_private/hotword_private_api.h"
23 #include "chrome/browser/extensions/extension_service.h" 27 #include "chrome/browser/extensions/extension_service.h"
24 #include "chrome/browser/extensions/pending_extension_manager.h" 28 #include "chrome/browser/extensions/pending_extension_manager.h"
25 #include "chrome/browser/extensions/updater/extension_updater.h" 29 #include "chrome/browser/extensions/updater/extension_updater.h"
26 #include "chrome/browser/notifications/notification.h" 30 #include "chrome/browser/notifications/notification.h"
27 #include "chrome/browser/notifications/notification_ui_manager.h" 31 #include "chrome/browser/notifications/notification_ui_manager.h"
28 #include "chrome/browser/plugins/plugin_prefs.h" 32 #include "chrome/browser/plugins/plugin_prefs.h"
29 #include "chrome/browser/profiles/profile.h" 33 #include "chrome/browser/profiles/profile.h"
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 // Only support multiple profiles and profile switching in ChromeOS. 875 // Only support multiple profiles and profile switching in ChromeOS.
872 if (user_manager::UserManager::IsInitialized()) { 876 if (user_manager::UserManager::IsInitialized()) {
873 user_manager::User* user = 877 user_manager::User* user =
874 user_manager::UserManager::Get()->GetActiveUser(); 878 user_manager::UserManager::Get()->GetActiveUser();
875 if (user && user->is_profile_created()) 879 if (user && user->is_profile_created())
876 return profile_ == ProfileManager::GetActiveUserProfile(); 880 return profile_ == ProfileManager::GetActiveUserProfile();
877 } 881 }
878 #endif 882 #endif
879 return true; 883 return true;
880 } 884 }
OLDNEW
« no previous file with comments | « chrome/browser/search/hotword_service.h ('k') | chrome/browser/search/hotword_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698