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

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

Issue 2299993004: Migrate chrome/browser files to histogram_macros.h includes. (Closed)
Patch Set: 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 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> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/i18n/case_conversion.h" 12 #include "base/i18n/case_conversion.h"
13 #include "base/location.h" 13 #include "base/location.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/metrics/field_trial.h" 15 #include "base/metrics/field_trial.h"
16 #include "base/metrics/histogram.h" 16 #include "base/metrics/histogram_macros.h"
17 #include "base/metrics/sparse_histogram.h" 17 #include "base/metrics/sparse_histogram.h"
18 #include "base/path_service.h" 18 #include "base/path_service.h"
19 #include "base/single_thread_task_runner.h" 19 #include "base/single_thread_task_runner.h"
20 #include "base/threading/thread_task_runner_handle.h" 20 #include "base/threading/thread_task_runner_handle.h"
21 #include "build/build_config.h" 21 #include "build/build_config.h"
22 #include "chrome/browser/browser_process.h" 22 #include "chrome/browser/browser_process.h"
23 #include "chrome/browser/chrome_notification_types.h" 23 #include "chrome/browser/chrome_notification_types.h"
24 #include "chrome/browser/extensions/api/hotword_private/hotword_private_api.h" 24 #include "chrome/browser/extensions/api/hotword_private/hotword_private_api.h"
25 #include "chrome/browser/extensions/extension_service.h" 25 #include "chrome/browser/extensions/extension_service.h"
26 #include "chrome/browser/extensions/pending_extension_manager.h" 26 #include "chrome/browser/extensions/pending_extension_manager.h"
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 // Only support multiple profiles and profile switching in ChromeOS. 874 // Only support multiple profiles and profile switching in ChromeOS.
875 if (user_manager::UserManager::IsInitialized()) { 875 if (user_manager::UserManager::IsInitialized()) {
876 user_manager::User* user = 876 user_manager::User* user =
877 user_manager::UserManager::Get()->GetActiveUser(); 877 user_manager::UserManager::Get()->GetActiveUser();
878 if (user && user->is_profile_created()) 878 if (user && user->is_profile_created())
879 return profile_ == ProfileManager::GetActiveUserProfile(); 879 return profile_ == ProfileManager::GetActiveUserProfile();
880 } 880 }
881 #endif 881 #endif
882 return true; 882 return true;
883 } 883 }
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/srt_field_trial_win.cc ('k') | chrome/browser/search/most_visited_iframe_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698