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

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

Issue 5153002: Use a service to create device management backends. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 10 years, 1 month 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 "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 blob_storage_context_.get(), 575 blob_storage_context_.get(),
576 &ChromeBlobStorageContext::InitializeOnIOThread)); 576 &ChromeBlobStorageContext::InitializeOnIOThread));
577 } 577 }
578 return blob_storage_context_; 578 return blob_storage_context_;
579 } 579 }
580 580
581 virtual ExtensionInfoMap* GetExtensionInfoMap() { 581 virtual ExtensionInfoMap* GetExtensionInfoMap() {
582 return profile_->GetExtensionInfoMap(); 582 return profile_->GetExtensionInfoMap();
583 } 583 }
584 584
585 virtual policy::DeviceManagementPolicyProvider* 585 virtual policy::ProfilePolicyContext* GetPolicyContext() {
586 GetDeviceManagementPolicyProvider() {
587 return NULL; 586 return NULL;
588 } 587 }
589 588
590 virtual PromoCounter* GetInstantPromoCounter() { 589 virtual PromoCounter* GetInstantPromoCounter() {
591 return NULL; 590 return NULL;
592 } 591 }
593 592
594 private: 593 private:
595 NotificationRegistrar registrar_; 594 NotificationRegistrar registrar_;
596 595
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 650
652 // The file_system context for this profile. 651 // The file_system context for this profile.
653 scoped_refptr<BrowserFileSystemContext> browser_file_system_context_; 652 scoped_refptr<BrowserFileSystemContext> browser_file_system_context_;
654 653
655 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); 654 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl);
656 }; 655 };
657 656
658 Profile* Profile::CreateOffTheRecordProfile() { 657 Profile* Profile::CreateOffTheRecordProfile() {
659 return new OffTheRecordProfileImpl(this); 658 return new OffTheRecordProfileImpl(this);
660 } 659 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698