| 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 "chrome/browser/autocomplete/shortcuts_provider.h" | 5 #include "chrome/browser/autocomplete/shortcuts_provider.h" |
| 6 | 6 |
| 7 #include <math.h> | 7 #include <math.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <functional> | 10 #include <functional> |
| (...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 769 scoped_refptr<const extensions::Extension> extension = | 769 scoped_refptr<const extensions::Extension> extension = |
| 770 extensions::ExtensionBuilder() | 770 extensions::ExtensionBuilder() |
| 771 .SetManifest(extensions::DictionaryBuilder() | 771 .SetManifest(extensions::DictionaryBuilder() |
| 772 .Set("name", "Echo") | 772 .Set("name", "Echo") |
| 773 .Set("version", "1.0")) | 773 .Set("version", "1.0")) |
| 774 .SetID("cedabbhfglmiikkmdgcpjdkocfcmbkee") | 774 .SetID("cedabbhfglmiikkmdgcpjdkocfcmbkee") |
| 775 .Build(); | 775 .Build(); |
| 776 extensions::UnloadedExtensionInfo details( | 776 extensions::UnloadedExtensionInfo details( |
| 777 extension.get(), extensions::UnloadedExtensionInfo::REASON_UNINSTALL); | 777 extension.get(), extensions::UnloadedExtensionInfo::REASON_UNINSTALL); |
| 778 content::NotificationService::current()->Notify( | 778 content::NotificationService::current()->Notify( |
| 779 chrome::NOTIFICATION_EXTENSION_UNLOADED, | 779 chrome::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED, |
| 780 content::Source<Profile>(&profile_), | 780 content::Source<Profile>(&profile_), |
| 781 content::Details<extensions::UnloadedExtensionInfo>(&details)); | 781 content::Details<extensions::UnloadedExtensionInfo>(&details)); |
| 782 | 782 |
| 783 // Now the URL should have disappeared. | 783 // Now the URL should have disappeared. |
| 784 RunTest(text, false, ExpectedURLs(), std::string(), base::string16()); | 784 RunTest(text, false, ExpectedURLs(), std::string(), base::string16()); |
| 785 } | 785 } |
| OLD | NEW |