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

Unified Diff: chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.cc

Issue 12089062: Move API functions registrations out of ExtensionFunctionRegistry. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.cc
===================================================================
--- chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.cc (revision 181773)
+++ chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.cc (working copy)
@@ -240,17 +240,17 @@
return true;
}
-bool CopyBookmarkManagerFunction::RunImpl() {
+bool BookmarkManagerPrivateCopyFunction::RunImpl() {
return CopyOrCut(false);
}
-bool CutBookmarkManagerFunction::RunImpl() {
+bool BookmarkManagerPrivateCutFunction::RunImpl() {
if (!EditBookmarksEnabled())
return false;
return CopyOrCut(true);
}
-bool PasteBookmarkManagerFunction::RunImpl() {
+bool BookmarkManagerPrivatePasteFunction::RunImpl() {
if (!EditBookmarksEnabled())
return false;
BookmarkModel* model = BookmarkModelFactory::GetForProfile(profile());
@@ -279,7 +279,7 @@
return true;
}
-bool CanPasteBookmarkManagerFunction::RunImpl() {
+bool BookmarkManagerPrivateCanPasteFunction::RunImpl() {
if (!EditBookmarksEnabled())
return false;
BookmarkModel* model = BookmarkModelFactory::GetForProfile(profile());
@@ -293,7 +293,7 @@
return true;
}
-bool SortChildrenBookmarkManagerFunction::RunImpl() {
+bool BookmarkManagerPrivateSortChildrenFunction::RunImpl() {
if (!EditBookmarksEnabled())
return false;
BookmarkModel* model = BookmarkModelFactory::GetForProfile(profile());
@@ -306,7 +306,7 @@
return true;
}
-bool BookmarkManagerGetStringsFunction::RunImpl() {
+bool BookmarkManagerPrivateGetStringsFunction::RunImpl() {
DictionaryValue* localized_strings = new DictionaryValue();
localized_strings->SetString("title",
@@ -389,7 +389,7 @@
return true;
}
-bool StartDragBookmarkManagerFunction::RunImpl() {
+bool BookmarkManagerPrivateStartDragFunction::RunImpl() {
if (!EditBookmarksEnabled())
return false;
BookmarkModel* model = BookmarkModelFactory::GetForProfile(profile());
@@ -413,7 +413,7 @@
}
}
-bool DropBookmarkManagerFunction::RunImpl() {
+bool BookmarkManagerPrivateDropFunction::RunImpl() {
if (!EditBookmarksEnabled())
return false;
@@ -470,7 +470,7 @@
}
}
-bool GetSubtreeBookmarkManagerFunction::RunImpl() {
+bool BookmarkManagerPrivateGetSubtreeFunction::RunImpl() {
BookmarkModel* model = BookmarkModelFactory::GetForProfile(profile());
const BookmarkNode* node;
int64 id;
@@ -500,7 +500,7 @@
return true;
}
-bool CanEditBookmarkManagerFunction::RunImpl() {
+bool BookmarkManagerPrivateCanEditFunction::RunImpl() {
PrefServiceBase* prefs = PrefServiceBase::FromBrowserContext(profile_);
SetResult(new base::FundamentalValue(
prefs->GetBoolean(prefs::kEditBookmarksEnabled)));
@@ -512,7 +512,7 @@
return true;
}
-bool CanOpenNewWindowsBookmarkFunction::RunImpl() {
+bool BookmarkManagerPrivateCanOpenNewWindowsFunction::RunImpl() {
bool can_open_new_windows = true;
#if defined(OS_WIN)

Powered by Google App Engine
This is Rietveld 408576698