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

Side by Side Diff: chrome/browser/profile_resetter/automatic_profile_resetter_delegate.cc

Issue 1279123004: Replace ToLower calls to the new format (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/profile_resetter/automatic_profile_resetter_delegate.h" 5 #include "chrome/browser/profile_resetter/automatic_profile_resetter_delegate.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 ModuleEnumerator::ModuleType module_type = 106 ModuleEnumerator::ModuleType module_type =
107 ModuleEnumerator::LOADED_MODULE; 107 ModuleEnumerator::LOADED_MODULE;
108 if (!module_dictionary->GetInteger( 108 if (!module_dictionary->GetInteger(
109 "type", reinterpret_cast<int*>(&module_type)) || 109 "type", reinterpret_cast<int*>(&module_type)) ||
110 module_type != ModuleEnumerator::LOADED_MODULE) { 110 module_type != ModuleEnumerator::LOADED_MODULE) {
111 continue; 111 continue;
112 } 112 }
113 std::string module_name; 113 std::string module_name;
114 if (!module_dictionary->GetString("name", &module_name)) 114 if (!module_dictionary->GetString("name", &module_name))
115 continue; 115 continue;
116 base::StringToLowerASCII(&module_name); 116 module_name = base::ToLowerASCII(module_name);
117 module_name_digests->AppendString(base::MD5String(module_name)); 117 module_name_digests->AppendString(base::MD5String(module_name));
118 } 118 }
119 } 119 }
120 #endif 120 #endif
121 121
122 } // namespace 122 } // namespace
123 123
124 124
125 // AutomaticProfileResetterDelegateImpl -------------------------------------- 125 // AutomaticProfileResetterDelegateImpl --------------------------------------
126 126
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 if (difference) { 384 if (difference) {
385 old_settings_snapshot->Subtract(new_settings_snapshot); 385 old_settings_snapshot->Subtract(new_settings_snapshot);
386 std::string report = 386 std::string report =
387 SerializeSettingsReport(*old_settings_snapshot, difference); 387 SerializeSettingsReport(*old_settings_snapshot, difference);
388 SendFeedback(report); 388 SendFeedback(report);
389 } 389 }
390 } 390 }
391 content::BrowserThread::PostTask( 391 content::BrowserThread::PostTask(
392 content::BrowserThread::UI, FROM_HERE, user_callback); 392 content::BrowserThread::UI, FROM_HERE, user_callback);
393 } 393 }
OLDNEW
« no previous file with comments | « chrome/browser/media_galleries/fileapi/media_path_filter.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698