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

Side by Side Diff: chrome/browser/autocomplete/shortcuts_provider_extension_unittest.cc

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Enum class Created 3 years, 7 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 "components/omnibox/browser/shortcuts_provider.h" 5 #include "components/omnibox/browser/shortcuts_provider.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // Claim the extension has been unloaded. 101 // Claim the extension has been unloaded.
102 scoped_refptr<const extensions::Extension> extension = 102 scoped_refptr<const extensions::Extension> extension =
103 extensions::ExtensionBuilder() 103 extensions::ExtensionBuilder()
104 .SetManifest(extensions::DictionaryBuilder() 104 .SetManifest(extensions::DictionaryBuilder()
105 .Set("name", "Echo") 105 .Set("name", "Echo")
106 .Set("version", "1.0") 106 .Set("version", "1.0")
107 .Build()) 107 .Build())
108 .SetID("cedabbhfglmiikkmdgcpjdkocfcmbkee") 108 .SetID("cedabbhfglmiikkmdgcpjdkocfcmbkee")
109 .Build(); 109 .Build();
110 extensions::ExtensionRegistry::Get(&profile_)->TriggerOnUnloaded( 110 extensions::ExtensionRegistry::Get(&profile_)->TriggerOnUnloaded(
111 extension.get(), extensions::UnloadedExtensionInfo::REASON_UNINSTALL); 111 extension.get(), extensions::UnloadedExtensionReason::REASON_UNINSTALL);
112 112
113 // Now the URL should have disappeared. 113 // Now the URL should have disappeared.
114 RunShortcutsProviderTest(provider_, text, false, ExpectedURLs(), 114 RunShortcutsProviderTest(provider_, text, false, ExpectedURLs(),
115 std::string(), base::string16()); 115 std::string(), base::string16());
116 } 116 }
117 #endif 117 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698