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

Unified Diff: chrome/browser/extensions/extension_service_unittest.cc

Issue 17948002: Update Linux to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/extension_service.cc ('k') | chrome/browser/nacl_host/nacl_file_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_service_unittest.cc
diff --git a/chrome/browser/extensions/extension_service_unittest.cc b/chrome/browser/extensions/extension_service_unittest.cc
index 8a9c03e477de488b598066d84f783fcae5e9463d..7765a854db4d31838bfe684eb601b4fd892c0925 100644
--- a/chrome/browser/extensions/extension_service_unittest.cc
+++ b/chrome/browser/extensions/extension_service_unittest.cc
@@ -158,7 +158,8 @@ const char* const unpacked = "cbcdidchbppangcjoddlpdjlenngjldk";
const char* const updates_from_webstore = "akjooamlhcgeopfifcmlggaebeocgokj";
struct ExtensionsOrder {
- bool operator()(const Extension* a, const Extension* b) {
+ bool operator()(const scoped_refptr<const Extension>& a,
+ const scoped_refptr<const Extension>& b) {
return a->name() < b->name();
}
};
@@ -4008,7 +4009,7 @@ TEST_F(ExtensionServiceTest, ClearExtensionData) {
BrowserContext::GetDefaultStoragePartition(profile_.get())->
GetIndexedDBContext();
idb_context->SetTaskRunnerForTesting(
- base::MessageLoop::current()->message_loop_proxy());
+ base::MessageLoop::current()->message_loop_proxy().get());
base::FilePath idb_path = idb_context->GetFilePathForTesting(origin_id);
EXPECT_TRUE(file_util::CreateDirectory(idb_path));
EXPECT_TRUE(file_util::DirectoryExists(idb_path));
@@ -4125,7 +4126,7 @@ TEST_F(ExtensionServiceTest, ClearAppData) {
BrowserContext::GetDefaultStoragePartition(profile_.get())->
GetIndexedDBContext();
idb_context->SetTaskRunnerForTesting(
- base::MessageLoop::current()->message_loop_proxy());
+ base::MessageLoop::current()->message_loop_proxy().get());
base::FilePath idb_path = idb_context->GetFilePathForTesting(origin_id);
EXPECT_TRUE(file_util::CreateDirectory(idb_path));
EXPECT_TRUE(file_util::DirectoryExists(idb_path));
« no previous file with comments | « chrome/browser/extensions/extension_service.cc ('k') | chrome/browser/nacl_host/nacl_file_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698