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

Side by Side Diff: chrome/browser/background/background_mode_manager.cc

Issue 1336993002: Straighten up includes of host_desktop.h/host_desktop_type.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@host_desktop_type
Patch Set: Build fixes for Windows and Mac Created 5 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/background/background_mode_manager.h" 5 #include "chrome/browser/background/background_mode_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 #include "content/public/browser/user_metrics.h" 53 #include "content/public/browser/user_metrics.h"
54 #include "extensions/browser/extension_system.h" 54 #include "extensions/browser/extension_system.h"
55 #include "extensions/common/constants.h" 55 #include "extensions/common/constants.h"
56 #include "extensions/common/extension.h" 56 #include "extensions/common/extension.h"
57 #include "extensions/common/manifest_handlers/options_page_info.h" 57 #include "extensions/common/manifest_handlers/options_page_info.h"
58 #include "extensions/common/one_shot_event.h" 58 #include "extensions/common/one_shot_event.h"
59 #include "extensions/common/permissions/permission_set.h" 59 #include "extensions/common/permissions/permission_set.h"
60 #include "grit/chrome_unscaled_resources.h" 60 #include "grit/chrome_unscaled_resources.h"
61 #include "ui/base/l10n/l10n_util.h" 61 #include "ui/base/l10n/l10n_util.h"
62 #include "ui/base/resource/resource_bundle.h" 62 #include "ui/base/resource/resource_bundle.h"
63 #include "ui/gfx/host_desktop_type.h"
63 64
64 #if defined(OS_WIN) 65 #if defined(OS_WIN)
65 #include "components/browser_watcher/exit_funnel_win.h" 66 #include "components/browser_watcher/exit_funnel_win.h"
66 #endif 67 #endif
67 68
68 using base::UserMetricsAction; 69 using base::UserMetricsAction;
69 using extensions::Extension; 70 using extensions::Extension;
70 using extensions::UpdatedExtensionPermissionsInfo; 71 using extensions::UpdatedExtensionPermissionsInfo;
71 72
72 namespace { 73 namespace {
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
1076 } 1077 }
1077 } 1078 }
1078 return profile_it; 1079 return profile_it;
1079 } 1080 }
1080 1081
1081 bool BackgroundModeManager::IsBackgroundModePrefEnabled() const { 1082 bool BackgroundModeManager::IsBackgroundModePrefEnabled() const {
1082 PrefService* service = g_browser_process->local_state(); 1083 PrefService* service = g_browser_process->local_state();
1083 DCHECK(service); 1084 DCHECK(service);
1084 return service->GetBoolean(prefs::kBackgroundModeEnabled); 1085 return service->GetBoolean(prefs::kBackgroundModeEnabled);
1085 } 1086 }
OLDNEW
« no previous file with comments | « chrome/browser/background/background_contents_service.cc ('k') | chrome/browser/browser_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698