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

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

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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/enumerate_modules_model_win.h" 5 #include "chrome/browser/enumerate_modules_model_win.h"
6 6
7 #include <Tlhelp32.h> 7 #include <Tlhelp32.h>
8 #include <wintrust.h> 8 #include <wintrust.h>
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 return base::string16(); 831 return base::string16();
832 } 832 }
833 833
834 return subject_name; 834 return subject_name;
835 } 835 }
836 836
837 // ---------------------------------------------------------------------------- 837 // ----------------------------------------------------------------------------
838 838
839 // static 839 // static
840 EnumerateModulesModel* EnumerateModulesModel::GetInstance() { 840 EnumerateModulesModel* EnumerateModulesModel::GetInstance() {
841 return Singleton<EnumerateModulesModel>::get(); 841 return base::Singleton<EnumerateModulesModel>::get();
842 } 842 }
843 843
844 bool EnumerateModulesModel::ShouldShowConflictWarning() const { 844 bool EnumerateModulesModel::ShouldShowConflictWarning() const {
845 // If the user has acknowledged the conflict notification, then we don't need 845 // If the user has acknowledged the conflict notification, then we don't need
846 // to show it again (because the scanning only happens once per the lifetime 846 // to show it again (because the scanning only happens once per the lifetime
847 // of the process). If we were to run the scanning more than once, then we'd 847 // of the process). If we were to run the scanning more than once, then we'd
848 // need to clear the flag somewhere when we are ready to show it again. 848 // need to clear the flag somewhere when we are ready to show it again.
849 if (conflict_notification_acknowledged_) 849 if (conflict_notification_acknowledged_)
850 return false; 850 return false;
851 851
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 GenerateHash(base::WideToUTF8(module.location), &location); 1068 GenerateHash(base::WideToUTF8(module.location), &location);
1069 GenerateHash(base::WideToUTF8(module.description), &description); 1069 GenerateHash(base::WideToUTF8(module.description), &description);
1070 GenerateHash(base::WideToUTF8(module.digital_signer), &signer); 1070 GenerateHash(base::WideToUTF8(module.digital_signer), &signer);
1071 1071
1072 base::string16 url = 1072 base::string16 url =
1073 l10n_util::GetStringFUTF16(IDS_HELP_CENTER_VIEW_CONFLICTS, 1073 l10n_util::GetStringFUTF16(IDS_HELP_CENTER_VIEW_CONFLICTS,
1074 base::ASCIIToUTF16(filename), base::ASCIIToUTF16(location), 1074 base::ASCIIToUTF16(filename), base::ASCIIToUTF16(location),
1075 base::ASCIIToUTF16(description), base::ASCIIToUTF16(signer)); 1075 base::ASCIIToUTF16(description), base::ASCIIToUTF16(signer));
1076 return GURL(base::UTF16ToUTF8(url)); 1076 return GURL(base::UTF16ToUTF8(url));
1077 } 1077 }
OLDNEW
« no previous file with comments | « chrome/browser/enumerate_modules_model_win.h ('k') | chrome/browser/extensions/activity_log/activity_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698