| 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 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 753 #if defined(OS_CHROMEOS) && defined(GOOGLE_CHROME_BUILD) | 753 #if defined(OS_CHROMEOS) && defined(GOOGLE_CHROME_BUILD) |
| 754 // Chat manager. | 754 // Chat manager. |
| 755 if (CommandLine::ForCurrentProcess()->HasSwitch( | 755 if (CommandLine::ForCurrentProcess()->HasSwitch( |
| 756 switches::kEnableChatManager)) { | 756 switches::kEnableChatManager)) { |
| 757 component_extensions["chat_manager"] = IDR_CHAT_MANAGER_MANIFEST; | 757 component_extensions["chat_manager"] = IDR_CHAT_MANAGER_MANIFEST; |
| 758 } | 758 } |
| 759 #endif | 759 #endif |
| 760 | 760 |
| 761 // Some sample apps to make our lives easier while we are developing extension | 761 // Some sample apps to make our lives easier while we are developing extension |
| 762 // apps. This way we don't have to constantly install these over and over. | 762 // apps. This way we don't have to constantly install these over and over. |
| 763 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableApps)) { | 763 if (Extension::AppsAreEnabled()) { |
| 764 #if defined(OS_WIN) | 764 #if defined(OS_WIN) |
| 765 std::string user_domain; | 765 std::string user_domain; |
| 766 if (base::EnvVarGetter::Create()->GetEnv("USERDOMAIN", &user_domain) && | 766 if (base::EnvVarGetter::Create()->GetEnv("USERDOMAIN", &user_domain) && |
| 767 user_domain == "GOOGLE") { | 767 user_domain == "GOOGLE") { |
| 768 component_extensions["gmail_app"] = IDR_GMAIL_APP_MANIFEST; | 768 component_extensions["gmail_app"] = IDR_GMAIL_APP_MANIFEST; |
| 769 component_extensions["calendar_app"] = IDR_CALENDAR_APP_MANIFEST; | 769 component_extensions["calendar_app"] = IDR_CALENDAR_APP_MANIFEST; |
| 770 component_extensions["docs_app"] = IDR_DOCS_APP_MANIFEST; | 770 component_extensions["docs_app"] = IDR_DOCS_APP_MANIFEST; |
| 771 } | 771 } |
| 772 #endif | 772 #endif |
| 773 } | 773 } |
| (...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1510 CommandLine::ForCurrentProcess())); | 1510 CommandLine::ForCurrentProcess())); |
| 1511 sync_service_.reset( | 1511 sync_service_.reset( |
| 1512 profile_sync_factory_->CreateProfileSyncService()); | 1512 profile_sync_factory_->CreateProfileSyncService()); |
| 1513 sync_service_->Initialize(); | 1513 sync_service_->Initialize(); |
| 1514 } | 1514 } |
| 1515 | 1515 |
| 1516 void ProfileImpl::InitCloudPrintProxyService() { | 1516 void ProfileImpl::InitCloudPrintProxyService() { |
| 1517 cloud_print_proxy_service_.reset(new CloudPrintProxyService(this)); | 1517 cloud_print_proxy_service_.reset(new CloudPrintProxyService(this)); |
| 1518 cloud_print_proxy_service_->Initialize(); | 1518 cloud_print_proxy_service_->Initialize(); |
| 1519 } | 1519 } |
| OLD | NEW |