| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <string> |
| 6 |
| 5 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 6 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
| 7 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
| 8 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 9 #include "base/logging.h" | 11 #include "base/logging.h" |
| 10 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
| 11 #include "chrome/app/chrome_command_ids.h" | 13 #include "chrome/app/chrome_command_ids.h" |
| 12 #include "chrome/browser/background_application_list_model.h" | 14 #include "chrome/browser/background_application_list_model.h" |
| 13 #include "chrome/browser/background_mode_manager.h" | 15 #include "chrome/browser/background_mode_manager.h" |
| 14 #include "chrome/browser/browser_list.h" | 16 #include "chrome/browser/browser_list.h" |
| 15 #include "chrome/browser/extensions/extension_service.h" | 17 #include "chrome/browser/extensions/extension_service.h" |
| 16 #include "chrome/browser/metrics/user_metrics.h" | 18 #include "chrome/browser/metrics/user_metrics.h" |
| 17 #include "chrome/browser/prefs/pref_service.h" | |
| 18 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
| 19 #include "chrome/browser/status_icons/status_icon.h" | 20 #include "chrome/browser/status_icons/status_icon.h" |
| 20 #include "chrome/browser/status_icons/status_tray.h" | 21 #include "chrome/browser/status_icons/status_tray.h" |
| 21 #include "chrome/common/chrome_switches.h" | 22 #include "chrome/common/chrome_switches.h" |
| 22 #include "chrome/common/extensions/extension.h" | 23 #include "chrome/common/extensions/extension.h" |
| 23 #include "chrome/common/notification_service.h" | 24 #include "chrome/common/notification_service.h" |
| 24 #include "chrome/common/notification_type.h" | 25 #include "chrome/common/notification_type.h" |
| 25 #include "chrome/common/pref_names.h" | 26 #include "chrome/common/pref_names.h" |
| 26 #include "grit/chromium_strings.h" | 27 #include "grit/chromium_strings.h" |
| 27 #include "grit/generated_resources.h" | 28 #include "grit/generated_resources.h" |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 // is always running on that platform, making it superfluous. | 370 // is always running on that platform, making it superfluous. |
| 370 #if defined(OS_CHROMEOS) | 371 #if defined(OS_CHROMEOS) |
| 371 return false; | 372 return false; |
| 372 #else | 373 #else |
| 373 bool background_mode_enabled = | 374 bool background_mode_enabled = |
| 374 !command_line->HasSwitch(switches::kDisableBackgroundMode) && | 375 !command_line->HasSwitch(switches::kDisableBackgroundMode) && |
| 375 !command_line->HasSwitch(switches::kDisableExtensions); | 376 !command_line->HasSwitch(switches::kDisableExtensions); |
| 376 return background_mode_enabled; | 377 return background_mode_enabled; |
| 377 #endif | 378 #endif |
| 378 } | 379 } |
| OLD | NEW |