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

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

Issue 204703002: Rename NOTIFICATION_EXTENSION_UNLOADED to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: maybe upload wont do something bizarre this time Created 6 years, 9 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 | Annotate | Revision Log
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 "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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/shortcuts_backend.cc ('k') | chrome/browser/automation/automation_provider_observers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698