| 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 "chrome/browser/profile.h" | 5 #include "chrome/browser/profile.h" |
| 6 | 6 |
| 7 #include "app/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
| 8 #include "app/theme_provider.h" | 8 #include "app/theme_provider.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/env_var.h" | 10 #include "base/env_var.h" |
| (...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 759 #if defined(OS_CHROMEOS) && defined(GOOGLE_CHROME_BUILD) | 759 #if defined(OS_CHROMEOS) && defined(GOOGLE_CHROME_BUILD) |
| 760 // Chat manager. | 760 // Chat manager. |
| 761 if (CommandLine::ForCurrentProcess()->HasSwitch( | 761 if (CommandLine::ForCurrentProcess()->HasSwitch( |
| 762 switches::kEnableChatManager)) { | 762 switches::kEnableChatManager)) { |
| 763 component_extensions["chat_manager"] = IDR_CHAT_MANAGER_MANIFEST; | 763 component_extensions["chat_manager"] = IDR_CHAT_MANAGER_MANIFEST; |
| 764 } | 764 } |
| 765 #endif | 765 #endif |
| 766 | 766 |
| 767 // Some sample apps to make our lives easier while we are developing extension | 767 // Some sample apps to make our lives easier while we are developing extension |
| 768 // apps. This way we don't have to constantly install these over and over. | 768 // apps. This way we don't have to constantly install these over and over. |
| 769 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableApps)) { | 769 if (Extension::AppsAreEnabled()) { |
| 770 #if defined(OS_WIN) | 770 #if defined(OS_WIN) |
| 771 std::string user_domain; | 771 std::string user_domain; |
| 772 if (base::EnvVarGetter::Create()->GetEnv("USERDOMAIN", &user_domain) && | 772 if (base::EnvVarGetter::Create()->GetEnv("USERDOMAIN", &user_domain) && |
| 773 user_domain == "GOOGLE") { | 773 user_domain == "GOOGLE") { |
| 774 component_extensions["gmail_app"] = IDR_GMAIL_APP_MANIFEST; | 774 component_extensions["gmail_app"] = IDR_GMAIL_APP_MANIFEST; |
| 775 component_extensions["calendar_app"] = IDR_CALENDAR_APP_MANIFEST; | 775 component_extensions["calendar_app"] = IDR_CALENDAR_APP_MANIFEST; |
| 776 component_extensions["docs_app"] = IDR_DOCS_APP_MANIFEST; | 776 component_extensions["docs_app"] = IDR_DOCS_APP_MANIFEST; |
| 777 } | 777 } |
| 778 #endif | 778 #endif |
| 779 } | 779 } |
| (...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1527 CommandLine::ForCurrentProcess())); | 1527 CommandLine::ForCurrentProcess())); |
| 1528 sync_service_.reset( | 1528 sync_service_.reset( |
| 1529 profile_sync_factory_->CreateProfileSyncService()); | 1529 profile_sync_factory_->CreateProfileSyncService()); |
| 1530 sync_service_->Initialize(); | 1530 sync_service_->Initialize(); |
| 1531 } | 1531 } |
| 1532 | 1532 |
| 1533 void ProfileImpl::InitCloudPrintProxyService() { | 1533 void ProfileImpl::InitCloudPrintProxyService() { |
| 1534 cloud_print_proxy_service_.reset(new CloudPrintProxyService(this)); | 1534 cloud_print_proxy_service_.reset(new CloudPrintProxyService(this)); |
| 1535 cloud_print_proxy_service_->Initialize(); | 1535 cloud_print_proxy_service_->Initialize(); |
| 1536 } | 1536 } |
| OLD | NEW |