OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/profiles/profile.h" | 5 #include "chrome/browser/profiles/profile.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 } | 480 } |
481 | 481 |
482 virtual bool DidLastSessionExitCleanly() { | 482 virtual bool DidLastSessionExitCleanly() { |
483 return profile_->DidLastSessionExitCleanly(); | 483 return profile_->DidLastSessionExitCleanly(); |
484 } | 484 } |
485 | 485 |
486 virtual BookmarkModel* GetBookmarkModel() { | 486 virtual BookmarkModel* GetBookmarkModel() { |
487 return profile_->GetBookmarkModel(); | 487 return profile_->GetBookmarkModel(); |
488 } | 488 } |
489 | 489 |
| 490 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() { |
| 491 return profile_->GetProtocolHandlerRegistry(); |
| 492 } |
| 493 |
490 virtual DesktopNotificationService* GetDesktopNotificationService() { | 494 virtual DesktopNotificationService* GetDesktopNotificationService() { |
491 if (!desktop_notification_service_.get()) { | 495 if (!desktop_notification_service_.get()) { |
492 desktop_notification_service_.reset(new DesktopNotificationService( | 496 desktop_notification_service_.reset(new DesktopNotificationService( |
493 this, g_browser_process->notification_ui_manager())); | 497 this, g_browser_process->notification_ui_manager())); |
494 } | 498 } |
495 return desktop_notification_service_.get(); | 499 return desktop_notification_service_.get(); |
496 } | 500 } |
497 | 501 |
498 virtual TokenService* GetTokenService() { | 502 virtual TokenService* GetTokenService() { |
499 return NULL; | 503 return NULL; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 } | 562 } |
559 | 563 |
560 virtual void InitExtensions() { | 564 virtual void InitExtensions() { |
561 NOTREACHED(); | 565 NOTREACHED(); |
562 } | 566 } |
563 | 567 |
564 virtual void InitPromoResources() { | 568 virtual void InitPromoResources() { |
565 NOTREACHED(); | 569 NOTREACHED(); |
566 } | 570 } |
567 | 571 |
| 572 virtual void InitRegisteredProtocolHandlers() { |
| 573 NOTREACHED(); |
| 574 } |
| 575 |
568 virtual NTPResourceCache* GetNTPResourceCache() { | 576 virtual NTPResourceCache* GetNTPResourceCache() { |
569 // Just return the real profile resource cache. | 577 // Just return the real profile resource cache. |
570 return profile_->GetNTPResourceCache(); | 578 return profile_->GetNTPResourceCache(); |
571 } | 579 } |
572 | 580 |
573 virtual FilePath last_selected_directory() { | 581 virtual FilePath last_selected_directory() { |
574 const FilePath& directory = last_selected_directory_; | 582 const FilePath& directory = last_selected_directory_; |
575 if (directory.empty()) { | 583 if (directory.empty()) { |
576 return profile_->last_selected_directory(); | 584 return profile_->last_selected_directory(); |
577 } | 585 } |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 }; | 764 }; |
757 #endif | 765 #endif |
758 | 766 |
759 Profile* Profile::CreateOffTheRecordProfile() { | 767 Profile* Profile::CreateOffTheRecordProfile() { |
760 #if defined(OS_CHROMEOS) | 768 #if defined(OS_CHROMEOS) |
761 if (Profile::IsGuestSession()) | 769 if (Profile::IsGuestSession()) |
762 return new GuestSessionProfile(this); | 770 return new GuestSessionProfile(this); |
763 #endif | 771 #endif |
764 return new OffTheRecordProfileImpl(this); | 772 return new OffTheRecordProfileImpl(this); |
765 } | 773 } |
OLD | NEW |