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

Side by Side Diff: chrome/test/base/testing_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 (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/test/base/testing_profile.h" 5 #include "chrome/test/base/testing_profile.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 return GuestViewManager::FromBrowserContext(this); 813 return GuestViewManager::FromBrowserContext(this);
814 #else 814 #else
815 return NULL; 815 return NULL;
816 #endif 816 #endif
817 } 817 }
818 818
819 content::PushMessagingService* TestingProfile::GetPushMessagingService() { 819 content::PushMessagingService* TestingProfile::GetPushMessagingService() {
820 return NULL; 820 return NULL;
821 } 821 }
822 822
823 content::PushMessagingService* TestingProfile::GetPushMessagingService() {
824 return NULL;
825 }
826
827 gcm::GCMPermissionContext* TestingProfile::GetPushMessagingPermissionContext() {
828 return NULL;
829 }
830
823 bool TestingProfile::IsSameProfile(Profile *p) { 831 bool TestingProfile::IsSameProfile(Profile *p) {
824 return this == p; 832 return this == p;
825 } 833 }
826 834
827 base::Time TestingProfile::GetStartTime() const { 835 base::Time TestingProfile::GetStartTime() const {
828 return start_time_; 836 return start_time_;
829 } 837 }
830 838
831 base::FilePath TestingProfile::last_selected_directory() { 839 base::FilePath TestingProfile::last_selected_directory() {
832 return last_selected_directory_; 840 return last_selected_directory_;
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 path_, 973 path_,
966 delegate_, 974 delegate_,
967 extension_policy_, 975 extension_policy_,
968 pref_service_.Pass(), 976 pref_service_.Pass(),
969 incognito_, 977 incognito_,
970 guest_session_, 978 guest_session_,
971 supervised_user_id_, 979 supervised_user_id_,
972 policy_service_.Pass(), 980 policy_service_.Pass(),
973 testing_factories_)); 981 testing_factories_));
974 } 982 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698