| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |