Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: chrome/browser/profile.cc

Issue 2206001: Merge 48149 - Relanding 48042.... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/408/src/
Patch Set: Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_install_ui.cc ('k') | chrome/browser/views/bookmark_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698