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

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

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Rebase 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // Claim the extension has been unloaded. 106 // Claim the extension has been unloaded.
107 scoped_refptr<const extensions::Extension> extension = 107 scoped_refptr<const extensions::Extension> extension =
108 extensions::ExtensionBuilder() 108 extensions::ExtensionBuilder()
109 .SetManifest(extensions::DictionaryBuilder() 109 .SetManifest(extensions::DictionaryBuilder()
110 .Set("name", "Echo") 110 .Set("name", "Echo")
111 .Set("version", "1.0") 111 .Set("version", "1.0")
112 .Build()) 112 .Build())
113 .SetID("cedabbhfglmiikkmdgcpjdkocfcmbkee") 113 .SetID("cedabbhfglmiikkmdgcpjdkocfcmbkee")
114 .Build(); 114 .Build();
115 extensions::ExtensionRegistry::Get(&profile_)->TriggerOnUnloaded( 115 extensions::ExtensionRegistry::Get(&profile_)->TriggerOnUnloaded(
116 extension.get(), extensions::UnloadedExtensionInfo::REASON_UNINSTALL); 116 extension.get(), extensions::UnloadedExtensionReason::REASON_UNINSTALL);
117 117
118 // Now the URL should have disappeared. 118 // Now the URL should have disappeared.
119 RunShortcutsProviderTest(provider_, text, false, ExpectedURLs(), 119 RunShortcutsProviderTest(provider_, text, false, ExpectedURLs(),
120 std::string(), base::string16()); 120 std::string(), base::string16());
121 } 121 }
122 #endif 122 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698