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

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

Issue 343743004: Implement a permission check for push. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 OffTheRecordProfileImpl::GetSpecialStoragePolicy() { 370 OffTheRecordProfileImpl::GetSpecialStoragePolicy() {
371 return GetExtensionSpecialStoragePolicy(); 371 return GetExtensionSpecialStoragePolicy();
372 } 372 }
373 373
374 content::PushMessagingService* 374 content::PushMessagingService*
375 OffTheRecordProfileImpl::GetPushMessagingService() { 375 OffTheRecordProfileImpl::GetPushMessagingService() {
376 // TODO(johnme): Support push messaging in incognito if possible. 376 // TODO(johnme): Support push messaging in incognito if possible.
377 return NULL; 377 return NULL;
378 } 378 }
379 379
380 gcm::GCMPermissionContext*
381 OffTheRecordProfileImpl::GetPushMessagingPermissionContext() {
382 return NULL;
Michael van Ouwerkerk 2014/06/19 10:16:10 Add a TODO like above? // TODO(miguelg): Support p
Miguel Garcia 2014/06/19 17:49:28 There is already a TODO in GetPushMessagingService
383 }
384
380 bool OffTheRecordProfileImpl::IsSameProfile(Profile* profile) { 385 bool OffTheRecordProfileImpl::IsSameProfile(Profile* profile) {
381 return (profile == this) || (profile == profile_); 386 return (profile == this) || (profile == profile_);
382 } 387 }
383 388
384 Time OffTheRecordProfileImpl::GetStartTime() const { 389 Time OffTheRecordProfileImpl::GetStartTime() const {
385 return start_time_; 390 return start_time_;
386 } 391 }
387 392
388 history::TopSites* OffTheRecordProfileImpl::GetTopSitesWithoutCreating() { 393 history::TopSites* OffTheRecordProfileImpl::GetTopSitesWithoutCreating() {
389 return NULL; 394 return NULL;
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { 537 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() {
533 #if defined(OS_CHROMEOS) 538 #if defined(OS_CHROMEOS)
534 if (chromeos::ProfileHelper::IsSigninProfile(this)) { 539 if (chromeos::ProfileHelper::IsSigninProfile(this)) {
535 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( 540 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState(
536 g_browser_process->local_state()); 541 g_browser_process->local_state());
537 } 542 }
538 #endif // defined(OS_CHROMEOS) 543 #endif // defined(OS_CHROMEOS)
539 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( 544 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile(
540 GetPrefs(), g_browser_process->local_state()); 545 GetPrefs(), g_browser_process->local_state());
541 } 546 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698