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

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

Issue 1236493004: Final batch adding real histogram values for extension events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android compile Created 5 years, 5 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
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 using content::BrowserThread; 91 using content::BrowserThread;
92 using content::DownloadManagerDelegate; 92 using content::DownloadManagerDelegate;
93 using content::HostZoomMap; 93 using content::HostZoomMap;
94 94
95 #if defined(ENABLE_EXTENSIONS) 95 #if defined(ENABLE_EXTENSIONS)
96 namespace { 96 namespace {
97 97
98 void NotifyOTRProfileCreatedOnIOThread(void* original_profile, 98 void NotifyOTRProfileCreatedOnIOThread(void* original_profile,
99 void* otr_profile) { 99 void* otr_profile) {
100 ExtensionWebRequestEventRouter::GetInstance()->OnOTRBrowserContextCreated( 100 extensions::ExtensionWebRequestEventRouter::GetInstance()
101 original_profile, otr_profile); 101 ->OnOTRBrowserContextCreated(original_profile, otr_profile);
102 } 102 }
103 103
104 void NotifyOTRProfileDestroyedOnIOThread(void* original_profile, 104 void NotifyOTRProfileDestroyedOnIOThread(void* original_profile,
105 void* otr_profile) { 105 void* otr_profile) {
106 ExtensionWebRequestEventRouter::GetInstance()->OnOTRBrowserContextDestroyed( 106 extensions::ExtensionWebRequestEventRouter::GetInstance()
107 original_profile, otr_profile); 107 ->OnOTRBrowserContextDestroyed(original_profile, otr_profile);
108 } 108 }
109 109
110 } // namespace 110 } // namespace
111 #endif 111 #endif
112 112
113 OffTheRecordProfileImpl::OffTheRecordProfileImpl(Profile* real_profile) 113 OffTheRecordProfileImpl::OffTheRecordProfileImpl(Profile* real_profile)
114 : profile_(real_profile), 114 : profile_(real_profile),
115 prefs_(PrefServiceSyncable::IncognitoFromProfile(real_profile)), 115 prefs_(PrefServiceSyncable::IncognitoFromProfile(real_profile)),
116 start_time_(Time::Now()) { 116 start_time_(Time::Now()) {
117 // Register on BrowserContext. 117 // Register on BrowserContext.
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { 592 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() {
593 #if defined(OS_CHROMEOS) 593 #if defined(OS_CHROMEOS)
594 if (chromeos::ProfileHelper::IsSigninProfile(this)) { 594 if (chromeos::ProfileHelper::IsSigninProfile(this)) {
595 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( 595 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState(
596 g_browser_process->local_state()); 596 g_browser_process->local_state());
597 } 597 }
598 #endif // defined(OS_CHROMEOS) 598 #endif // defined(OS_CHROMEOS)
599 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( 599 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile(
600 GetPrefs(), g_browser_process->local_state()); 600 GetPrefs(), g_browser_process->local_state());
601 } 601 }
OLDNEW
« no previous file with comments | « chrome/browser/net/chrome_extensions_network_delegate.cc ('k') | extensions/browser/api/hid/hid_device_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698