OLD | NEW |
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 Loading... |
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 |
OLD | NEW |