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

Side by Side Diff: chrome/browser/task_manager/task_manager.cc

Issue 11570009: Split PrefService into PrefService, PrefServiceSimple and PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head again, previous had unrelated broken win_rel test. Created 8 years 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/task_manager/task_manager.h" 5 #include "chrome/browser/task_manager/task_manager.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/i18n/number_formatting.h" 9 #include "base/i18n/number_formatting.h"
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
(...skipping 1203 matching lines...) Expand 10 before | Expand all | Expand 10 after
1214 1214
1215 bool TaskManager::Resource::CanInspect() const { return false; } 1215 bool TaskManager::Resource::CanInspect() const { return false; }
1216 1216
1217 content::WebContents* TaskManager::Resource::GetWebContents() const { 1217 content::WebContents* TaskManager::Resource::GetWebContents() const {
1218 return NULL; 1218 return NULL;
1219 } 1219 }
1220 1220
1221 bool TaskManager::Resource::IsBackground() const { return false; } 1221 bool TaskManager::Resource::IsBackground() const { return false; }
1222 1222
1223 // static 1223 // static
1224 void TaskManager::RegisterPrefs(PrefService* prefs) { 1224 void TaskManager::RegisterPrefs(PrefServiceSimple* prefs) {
1225 prefs->RegisterDictionaryPref(prefs::kTaskManagerWindowPlacement); 1225 prefs->RegisterDictionaryPref(prefs::kTaskManagerWindowPlacement);
1226 } 1226 }
1227 1227
1228 TaskManager::TaskManager() 1228 TaskManager::TaskManager()
1229 : ALLOW_THIS_IN_INITIALIZER_LIST(model_(new TaskManagerModel(this))) { 1229 : ALLOW_THIS_IN_INITIALIZER_LIST(model_(new TaskManagerModel(this))) {
1230 } 1230 }
1231 1231
1232 TaskManager::~TaskManager() { 1232 TaskManager::~TaskManager() {
1233 } 1233 }
1234 1234
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
1343 // Count the number of extensions with background pages (including 1343 // Count the number of extensions with background pages (including
1344 // incognito). 1344 // incognito).
1345 count += CountExtensionBackgroundPagesForProfile(profile); 1345 count += CountExtensionBackgroundPagesForProfile(profile);
1346 if (profile->HasOffTheRecordProfile()) { 1346 if (profile->HasOffTheRecordProfile()) {
1347 count += CountExtensionBackgroundPagesForProfile( 1347 count += CountExtensionBackgroundPagesForProfile(
1348 profile->GetOffTheRecordProfile()); 1348 profile->GetOffTheRecordProfile());
1349 } 1349 }
1350 } 1350 }
1351 return count; 1351 return count;
1352 } 1352 }
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/task_manager.h ('k') | chrome/browser/themes/theme_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698