summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_bookmarks_module.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/extension_bookmarks_module.h')
-rw-r--r--chrome/browser/extensions/extension_bookmarks_module.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_bookmarks_module.h b/chrome/browser/extensions/extension_bookmarks_module.h
index cfa32de..7cfc1ca2 100644
--- a/chrome/browser/extensions/extension_bookmarks_module.h
+++ b/chrome/browser/extensions/extension_bookmarks_module.h
@@ -70,6 +70,12 @@ class BookmarksFunction : public AsyncExtensionFunction,
virtual void Run();
virtual bool RunImpl() = 0;
+ protected:
+ // Helper to get the bookmark id as int64 from the given string id.
+ // Sets error_ to an errro string if the given id string can't be parsed
+ // as an int64. In case of error, doesn't change id and returns false.
+ bool GetBookmarkIdAsInt64(const std::string& id_string, int64* id);
+
private:
virtual void Observe(NotificationType type,
const NotificationSource& source,