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

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

Issue 6905044: Refactor preference syncing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + comments Created 9 years, 7 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/i18n/number_formatting.h" 8 #include "base/i18n/number_formatting.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 *proc_metrics = iter->second; 896 *proc_metrics = iter->second;
897 return true; 897 return true;
898 } 898 }
899 899
900 //////////////////////////////////////////////////////////////////////////////// 900 ////////////////////////////////////////////////////////////////////////////////
901 // TaskManager class 901 // TaskManager class
902 //////////////////////////////////////////////////////////////////////////////// 902 ////////////////////////////////////////////////////////////////////////////////
903 903
904 // static 904 // static
905 void TaskManager::RegisterPrefs(PrefService* prefs) { 905 void TaskManager::RegisterPrefs(PrefService* prefs) {
906 prefs->RegisterDictionaryPref(prefs::kTaskManagerWindowPlacement); 906 prefs->RegisterDictionaryPref(prefs::kTaskManagerWindowPlacement,
907 false /* don't sync pref */);
907 } 908 }
908 909
909 TaskManager::TaskManager() 910 TaskManager::TaskManager()
910 : ALLOW_THIS_IN_INITIALIZER_LIST(model_(new TaskManagerModel(this))) { 911 : ALLOW_THIS_IN_INITIALIZER_LIST(model_(new TaskManagerModel(this))) {
911 } 912 }
912 913
913 TaskManager::~TaskManager() { 914 TaskManager::~TaskManager() {
914 } 915 }
915 916
916 bool TaskManager::IsBrowserProcess(int index) const { 917 bool TaskManager::IsBrowserProcess(int index) const {
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 // Count the number of extensions with background pages (including 1047 // Count the number of extensions with background pages (including
1047 // incognito). 1048 // incognito).
1048 count += CountExtensionBackgroundPagesForProfile(profile); 1049 count += CountExtensionBackgroundPagesForProfile(profile);
1049 if (profile->HasOffTheRecordProfile()) { 1050 if (profile->HasOffTheRecordProfile()) {
1050 count += CountExtensionBackgroundPagesForProfile( 1051 count += CountExtensionBackgroundPagesForProfile(
1051 profile->GetOffTheRecordProfile()); 1052 profile->GetOffTheRecordProfile());
1052 } 1053 }
1053 } 1054 }
1054 return count; 1055 return count;
1055 } 1056 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698