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

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

Issue 8805022: Rename constants used with default apps to confrom with naming convention. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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
« no previous file with comments | « chrome/browser/extensions/extension_service.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <set> 5 #include <set>
6 6
7 #include "chrome/browser/profiles/profile_manager.h" 7 #include "chrome/browser/profiles/profile_manager.h"
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 size = file_util::ComputeFilesSize(path_, FILE_PATH_LITERAL("Extension*")); 134 size = file_util::ComputeFilesSize(path_, FILE_PATH_LITERAL("Extension*"));
135 size_MB = static_cast<int>(size / (1024 * 1024)); 135 size_MB = static_cast<int>(size / (1024 * 1024));
136 UMA_HISTOGRAM_COUNTS_10000("Profile.ExtensionSize", size_MB); 136 UMA_HISTOGRAM_COUNTS_10000("Profile.ExtensionSize", size_MB);
137 137
138 // Count number of extensions in this profile, if we know. 138 // Count number of extensions in this profile, if we know.
139 if (extension_count_ != -1) { 139 if (extension_count_ != -1) {
140 UMA_HISTOGRAM_COUNTS_10000("Profile.AppCount", extension_count_); 140 UMA_HISTOGRAM_COUNTS_10000("Profile.AppCount", extension_count_);
141 141
142 static bool default_apps_trial_exists = base::FieldTrialList::TrialExists( 142 static bool default_apps_trial_exists = base::FieldTrialList::TrialExists(
143 kDefaultAppsTrial_Name); 143 kDefaultAppsTrialName);
144 if (default_apps_trial_exists) { 144 if (default_apps_trial_exists) {
145 UMA_HISTOGRAM_COUNTS_10000( 145 UMA_HISTOGRAM_COUNTS_10000(
146 base::FieldTrial::MakeName("Profile.AppCount", 146 base::FieldTrial::MakeName("Profile.AppCount",
147 kDefaultAppsTrial_Name), 147 kDefaultAppsTrialName),
148 extension_count_); 148 extension_count_);
149 } 149 }
150 } 150 }
151 } 151 }
152 152
153 void QueueProfileDirectoryForDeletion(const FilePath& path) { 153 void QueueProfileDirectoryForDeletion(const FilePath& path) {
154 ProfilesToDelete().push_back(path); 154 ProfilesToDelete().push_back(path);
155 } 155 }
156 156
157 } // namespace 157 } // namespace
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 RegisterProfile(profile, true); 765 RegisterProfile(profile, true);
766 if (add_to_cache) 766 if (add_to_cache)
767 AddProfileToCache(profile); 767 AddProfileToCache(profile);
768 } 768 }
769 769
770 #if defined(OS_WIN) 770 #if defined(OS_WIN)
771 void ProfileManager::RemoveProfileShortcutManagerForTesting() { 771 void ProfileManager::RemoveProfileShortcutManagerForTesting() {
772 profile_info_cache_->RemoveObserver(profile_shortcut_manager_.get()); 772 profile_info_cache_->RemoveObserver(profile_shortcut_manager_.get());
773 } 773 }
774 #endif 774 #endif
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_service.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698