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

Side by Side Diff: chrome/browser/profiles/off_the_record_profile_impl.cc

Issue 317823007: Hook PushMessagingMessageFilter up to GCMDriver (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Send failure IPC when service is NULL Created 6 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/off_the_record_profile_impl.h" 5 #include "chrome/browser/profiles/off_the_record_profile_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 #else 433 #else
434 return NULL; 434 return NULL;
435 #endif 435 #endif
436 } 436 }
437 437
438 quota::SpecialStoragePolicy* 438 quota::SpecialStoragePolicy*
439 OffTheRecordProfileImpl::GetSpecialStoragePolicy() { 439 OffTheRecordProfileImpl::GetSpecialStoragePolicy() {
440 return GetExtensionSpecialStoragePolicy(); 440 return GetExtensionSpecialStoragePolicy();
441 } 441 }
442 442
443 content::PushMessagingService*
444 OffTheRecordProfileImpl::GetPushMessagingService() {
445 // TODO(johnme): Support push messaging in incognito if possible.
446 return NULL;
447 }
448
443 bool OffTheRecordProfileImpl::IsSameProfile(Profile* profile) { 449 bool OffTheRecordProfileImpl::IsSameProfile(Profile* profile) {
444 return (profile == this) || (profile == profile_); 450 return (profile == this) || (profile == profile_);
445 } 451 }
446 452
447 Time OffTheRecordProfileImpl::GetStartTime() const { 453 Time OffTheRecordProfileImpl::GetStartTime() const {
448 return start_time_; 454 return start_time_;
449 } 455 }
450 456
451 history::TopSites* OffTheRecordProfileImpl::GetTopSitesWithoutCreating() { 457 history::TopSites* OffTheRecordProfileImpl::GetTopSitesWithoutCreating() {
452 return NULL; 458 return NULL;
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { 601 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() {
596 #if defined(OS_CHROMEOS) 602 #if defined(OS_CHROMEOS)
597 if (chromeos::ProfileHelper::IsSigninProfile(this)) { 603 if (chromeos::ProfileHelper::IsSigninProfile(this)) {
598 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( 604 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState(
599 g_browser_process->local_state()); 605 g_browser_process->local_state());
600 } 606 }
601 #endif // defined(OS_CHROMEOS) 607 #endif // defined(OS_CHROMEOS)
602 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( 608 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile(
603 GetPrefs(), g_browser_process->local_state()); 609 GetPrefs(), g_browser_process->local_state());
604 } 610 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.h ('k') | chrome/browser/profiles/profile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698