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 <math.h> | 7 #include <math.h> |
| 8 #include <stddef.h> |
8 | 9 |
9 #include <algorithm> | 10 #include <algorithm> |
10 #include <functional> | 11 #include <functional> |
11 #include <set> | 12 #include <set> |
12 #include <string> | 13 #include <string> |
13 #include <vector> | 14 #include <vector> |
14 | 15 |
| 16 #include "base/macros.h" |
15 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
16 #include "base/message_loop/message_loop.h" | 18 #include "base/message_loop/message_loop.h" |
17 #include "base/prefs/pref_service.h" | 19 #include "base/prefs/pref_service.h" |
18 #include "base/strings/stringprintf.h" | 20 #include "base/strings/stringprintf.h" |
19 #include "base/strings/utf_string_conversions.h" | 21 #include "base/strings/utf_string_conversions.h" |
20 #include "chrome/browser/autocomplete/chrome_autocomplete_provider_client.h" | 22 #include "chrome/browser/autocomplete/chrome_autocomplete_provider_client.h" |
21 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" | 23 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" |
22 #include "chrome/browser/autocomplete/shortcuts_backend_factory.h" | 24 #include "chrome/browser/autocomplete/shortcuts_backend_factory.h" |
23 #include "chrome/test/base/testing_profile.h" | 25 #include "chrome/test/base/testing_profile.h" |
24 #include "components/history/core/browser/history_service.h" | 26 #include "components/history/core/browser/history_service.h" |
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
857 extension.get(), extensions::UnloadedExtensionInfo::REASON_UNINSTALL); | 859 extension.get(), extensions::UnloadedExtensionInfo::REASON_UNINSTALL); |
858 content::NotificationService::current()->Notify( | 860 content::NotificationService::current()->Notify( |
859 extensions::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED, | 861 extensions::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED, |
860 content::Source<Profile>(&profile_), | 862 content::Source<Profile>(&profile_), |
861 content::Details<extensions::UnloadedExtensionInfo>(&details)); | 863 content::Details<extensions::UnloadedExtensionInfo>(&details)); |
862 | 864 |
863 // Now the URL should have disappeared. | 865 // Now the URL should have disappeared. |
864 RunTest(text, false, ExpectedURLs(), std::string(), base::string16()); | 866 RunTest(text, false, ExpectedURLs(), std::string(), base::string16()); |
865 } | 867 } |
866 #endif | 868 #endif |
OLD | NEW |