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

Side by Side Diff: chrome/browser/extensions/extension_updater.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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/extensions/extension_updater.h" 5 #include "chrome/browser/extensions/extension_updater.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 #if defined(OS_MACOSX) 49 #if defined(OS_MACOSX)
50 #include "base/sys_string_conversions.h" 50 #include "base/sys_string_conversions.h"
51 #endif 51 #endif
52 52
53 #define SEND_ACTIVE_PINGS 1 53 #define SEND_ACTIVE_PINGS 1
54 54
55 using base::RandDouble; 55 using base::RandDouble;
56 using base::RandInt; 56 using base::RandInt;
57 using base::Time; 57 using base::Time;
58 using base::TimeDelta; 58 using base::TimeDelta;
59 using content::BrowserThread;
59 using prefs::kExtensionBlacklistUpdateVersion; 60 using prefs::kExtensionBlacklistUpdateVersion;
60 using prefs::kLastExtensionsUpdateCheck; 61 using prefs::kLastExtensionsUpdateCheck;
61 using prefs::kNextExtensionsUpdateCheck; 62 using prefs::kNextExtensionsUpdateCheck;
62 63
63 // Update AppID for extension blacklist. 64 // Update AppID for extension blacklist.
64 const char* ExtensionUpdater::kBlacklistAppID = "com.google.crx.blacklist"; 65 const char* ExtensionUpdater::kBlacklistAppID = "com.google.crx.blacklist";
65 66
66 namespace { 67 namespace {
67 68
68 // Wait at least 5 minutes after browser startup before we do any checks. If you 69 // Wait at least 5 minutes after browser startup before we do any checks. If you
(...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after
1243 std::set<std::string>::const_iterator i; 1244 std::set<std::string>::const_iterator i;
1244 for (i = ids.begin(); i != ids.end(); ++i) 1245 for (i = ids.begin(); i != ids.end(); ++i)
1245 in_progress_ids_.insert(*i); 1246 in_progress_ids_.insert(*i);
1246 } 1247 }
1247 1248
1248 void ExtensionUpdater::RemoveFromInProgress(const std::set<std::string>& ids) { 1249 void ExtensionUpdater::RemoveFromInProgress(const std::set<std::string>& ids) {
1249 std::set<std::string>::const_iterator i; 1250 std::set<std::string>::const_iterator i;
1250 for (i = ids.begin(); i != ids.end(); ++i) 1251 for (i = ids.begin(); i != ids.end(); ++i)
1251 in_progress_ids_.erase(*i); 1252 in_progress_ids_.erase(*i);
1252 } 1253 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_tab_id_map.cc ('k') | chrome/browser/extensions/extension_updater_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698