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

Side by Side Diff: chrome/browser/ui/app_list/test/fake_profile.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/ui/app_list/test/fake_profile.h" 5 #include "chrome/browser/ui/app_list/test/fake_profile.h"
6 6
7 FakeProfile::FakeProfile(const std::string& name) 7 FakeProfile::FakeProfile(const std::string& name)
8 : name_(name) { 8 : name_(name) {
9 } 9 }
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 } 65 }
66 66
67 quota::SpecialStoragePolicy* FakeProfile::GetSpecialStoragePolicy() { 67 quota::SpecialStoragePolicy* FakeProfile::GetSpecialStoragePolicy() {
68 return NULL; 68 return NULL;
69 } 69 }
70 70
71 content::PushMessagingService* FakeProfile::GetPushMessagingService() { 71 content::PushMessagingService* FakeProfile::GetPushMessagingService() {
72 return NULL; 72 return NULL;
73 } 73 }
74 74
75 content::PushMessagingService* FakeProfile::GetPushMessagingService() {
76 return NULL;
77 }
78
79 gcm::GCMPermissionContext* FakeProfile::GetPushMessagingPermissionContext() {
80 return NULL;
81 }
82
75 scoped_refptr<base::SequencedTaskRunner> 83 scoped_refptr<base::SequencedTaskRunner>
76 FakeProfile::GetIOTaskRunner() { 84 FakeProfile::GetIOTaskRunner() {
77 return scoped_refptr<base::SequencedTaskRunner>(); 85 return scoped_refptr<base::SequencedTaskRunner>();
78 } 86 }
79 87
80 Profile* FakeProfile::GetOffTheRecordProfile() { 88 Profile* FakeProfile::GetOffTheRecordProfile() {
81 return NULL; 89 return NULL;
82 } 90 }
83 91
84 void FakeProfile::DestroyOffTheRecordProfile() {} 92 void FakeProfile::DestroyOffTheRecordProfile() {}
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) { 208 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) {
201 return false; 209 return false;
202 } 210 }
203 211
204 void FakeProfile::SetExitType(ExitType exit_type) { 212 void FakeProfile::SetExitType(ExitType exit_type) {
205 } 213 }
206 214
207 Profile::ExitType FakeProfile::GetLastSessionExitType() { 215 Profile::ExitType FakeProfile::GetLastSessionExitType() {
208 return EXIT_NORMAL; 216 return EXIT_NORMAL;
209 } 217 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698