| OLD | NEW |
| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 #include "extensions/common/constants.h" | 59 #include "extensions/common/constants.h" |
| 60 #include "extensions/common/extension.h" | 60 #include "extensions/common/extension.h" |
| 61 #include "extensions/common/manifest_handlers/options_page_info.h" | 61 #include "extensions/common/manifest_handlers/options_page_info.h" |
| 62 #include "extensions/common/one_shot_event.h" | 62 #include "extensions/common/one_shot_event.h" |
| 63 #include "extensions/common/permissions/permission_set.h" | 63 #include "extensions/common/permissions/permission_set.h" |
| 64 #include "grit/chrome_unscaled_resources.h" | 64 #include "grit/chrome_unscaled_resources.h" |
| 65 #include "ui/base/l10n/l10n_util.h" | 65 #include "ui/base/l10n/l10n_util.h" |
| 66 #include "ui/base/resource/resource_bundle.h" | 66 #include "ui/base/resource/resource_bundle.h" |
| 67 | 67 |
| 68 #if defined(OS_WIN) | 68 #if defined(OS_WIN) |
| 69 #include "chrome/browser/app_icon_win.h" | 69 #include "chrome/browser/win/app_icon.h" |
| 70 #endif | 70 #endif |
| 71 | 71 |
| 72 using base::UserMetricsAction; | 72 using base::UserMetricsAction; |
| 73 using extensions::Extension; | 73 using extensions::Extension; |
| 74 | 74 |
| 75 namespace { | 75 namespace { |
| 76 | 76 |
| 77 // Enum for recording menu item clicks in UMA. | 77 // Enum for recording menu item clicks in UMA. |
| 78 // NOTE: Do not renumber these as that would confuse interpretation of | 78 // NOTE: Do not renumber these as that would confuse interpretation of |
| 79 // previously logged data. When making changes, also update histograms.xml. | 79 // previously logged data. When making changes, also update histograms.xml. |
| (...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1024 } | 1024 } |
| 1025 } | 1025 } |
| 1026 return profile_it; | 1026 return profile_it; |
| 1027 } | 1027 } |
| 1028 | 1028 |
| 1029 bool BackgroundModeManager::IsBackgroundModePrefEnabled() const { | 1029 bool BackgroundModeManager::IsBackgroundModePrefEnabled() const { |
| 1030 PrefService* service = g_browser_process->local_state(); | 1030 PrefService* service = g_browser_process->local_state(); |
| 1031 DCHECK(service); | 1031 DCHECK(service); |
| 1032 return service->GetBoolean(prefs::kBackgroundModeEnabled); | 1032 return service->GetBoolean(prefs::kBackgroundModeEnabled); |
| 1033 } | 1033 } |
| OLD | NEW |