| 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/ui/startup/startup_browser_creator.h" | 5 #include "chrome/browser/ui/startup/startup_browser_creator.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> // For max(). | 9 #include <algorithm> // For max(). |
| 10 #include <limits> | 10 #include <limits> |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <set> | 12 #include <set> |
| 13 | 13 |
| 14 #include "apps/app_load_service.h" | |
| 15 #include "apps/switches.h" | 14 #include "apps/switches.h" |
| 16 #include "base/bind.h" | 15 #include "base/bind.h" |
| 17 #include "base/bind_helpers.h" | 16 #include "base/bind_helpers.h" |
| 18 #include "base/command_line.h" | 17 #include "base/command_line.h" |
| 19 #include "base/compiler_specific.h" | 18 #include "base/compiler_specific.h" |
| 20 #include "base/debug/alias.h" | 19 #include "base/debug/alias.h" |
| 21 #include "base/environment.h" | 20 #include "base/environment.h" |
| 22 #include "base/files/file_path.h" | 21 #include "base/files/file_path.h" |
| 23 #include "base/files/file_util.h" | 22 #include "base/files/file_util.h" |
| 24 #include "base/lazy_instance.h" | 23 #include "base/lazy_instance.h" |
| 25 #include "base/logging.h" | 24 #include "base/logging.h" |
| 26 #include "base/macros.h" | 25 #include "base/macros.h" |
| 27 #include "base/metrics/histogram_macros.h" | 26 #include "base/metrics/histogram_macros.h" |
| 28 #include "base/metrics/statistics_recorder.h" | 27 #include "base/metrics/statistics_recorder.h" |
| 29 #include "base/metrics/user_metrics_action.h" | 28 #include "base/metrics/user_metrics_action.h" |
| 30 #include "base/strings/string_number_conversions.h" | 29 #include "base/strings/string_number_conversions.h" |
| 31 #include "base/strings/string_split.h" | 30 #include "base/strings/string_split.h" |
| 32 #include "base/strings/string_tokenizer.h" | 31 #include "base/strings/string_tokenizer.h" |
| 33 #include "base/strings/string_util.h" | 32 #include "base/strings/string_util.h" |
| 34 #include "base/strings/utf_string_conversions.h" | 33 #include "base/strings/utf_string_conversions.h" |
| 35 #include "base/task_scheduler/post_task.h" | 34 #include "base/task_scheduler/post_task.h" |
| 36 #include "base/threading/thread_restrictions.h" | 35 #include "base/threading/thread_restrictions.h" |
| 37 #include "base/trace_event/trace_event.h" | 36 #include "base/trace_event/trace_event.h" |
| 38 #include "build/build_config.h" | 37 #include "build/build_config.h" |
| 39 #include "chrome/browser/app_mode/app_mode_utils.h" | 38 #include "chrome/browser/app_mode/app_mode_utils.h" |
| 39 #include "chrome/browser/apps/app_load_service.h" |
| 40 #include "chrome/browser/browser_process.h" | 40 #include "chrome/browser/browser_process.h" |
| 41 #include "chrome/browser/chrome_notification_types.h" | 41 #include "chrome/browser/chrome_notification_types.h" |
| 42 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 42 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
| 43 #include "chrome/browser/extensions/startup_helper.h" | 43 #include "chrome/browser/extensions/startup_helper.h" |
| 44 #include "chrome/browser/extensions/unpacked_installer.h" | 44 #include "chrome/browser/extensions/unpacked_installer.h" |
| 45 #include "chrome/browser/first_run/first_run.h" | 45 #include "chrome/browser/first_run/first_run.h" |
| 46 #include "chrome/browser/net/predictor.h" | 46 #include "chrome/browser/net/predictor.h" |
| 47 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 47 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
| 48 #include "chrome/browser/prefs/session_startup_pref.h" | 48 #include "chrome/browser/prefs/session_startup_pref.h" |
| 49 #include "chrome/browser/profiles/profile.h" | 49 #include "chrome/browser/profiles/profile.h" |
| (...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1020 if (!entry->IsSigninRequired()) { | 1020 if (!entry->IsSigninRequired()) { |
| 1021 Profile* profile = profile_manager->GetProfile(entry->GetPath()); | 1021 Profile* profile = profile_manager->GetProfile(entry->GetPath()); |
| 1022 if (profile) | 1022 if (profile) |
| 1023 return profile; | 1023 return profile; |
| 1024 } | 1024 } |
| 1025 } | 1025 } |
| 1026 | 1026 |
| 1027 return nullptr; | 1027 return nullptr; |
| 1028 } | 1028 } |
| 1029 #endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID) | 1029 #endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID) |
| OLD | NEW |