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

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_model_observer_for_cocoa.h

Issue 2747693003: Add missing include guards in Cocoa code. (Closed)
Patch Set: Fix nit Created 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/bookmarks/bookmark_model_observer_for_cocoa.h
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_model_observer_for_cocoa.h b/chrome/browser/ui/cocoa/bookmarks/bookmark_model_observer_for_cocoa.h
index 66b81634e1d03cdcec04a7ed18a49cf064028c2c..0bc74f31562c5204af11bae5d3a8efaf711e79b4 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_model_observer_for_cocoa.h
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_model_observer_for_cocoa.h
@@ -2,6 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_MODEL_OBSERVER_FOR_COCOA_H_
+#define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_MODEL_OBSERVER_FOR_COCOA_H_
+
+#import <Cocoa/Cocoa.h>
+
+#include <set>
+
+#include "base/mac/scoped_block.h"
+#include "base/macros.h"
+#include "components/bookmarks/browser/bookmark_model.h"
+#include "components/bookmarks/browser/bookmark_model_observer.h"
+
// C++ bridge class to send a selector to a Cocoa object when the
// bookmark model changes. Some Cocoa objects edit the bookmark model
// and temporarily save a copy of the state (e.g. bookmark button
@@ -15,19 +27,6 @@
// cancel an edit if the removed node is a folder (editors often have
// a list of "new parents"). But, just to be sure, notification
// happens on any removal.
-
-#ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_MODEL_OBSERVER_FOR_COCOA_H_
-#define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_MODEL_OBSERVER_FOR_COCOA_H_
-
-#import <Cocoa/Cocoa.h>
-
-#include <set>
-
-#include "base/mac/scoped_block.h"
-#include "base/macros.h"
-#include "components/bookmarks/browser/bookmark_model.h"
-#include "components/bookmarks/browser/bookmark_model_observer.h"
-
class BookmarkModelObserverForCocoa : public bookmarks::BookmarkModelObserver {
public:
// Callback called on a significant model change.
« no previous file with comments | « chrome/browser/ui/cocoa/bookmarks/bookmark_menu_cocoa_controller.h ('k') | chrome/browser/ui/cocoa/bubble_combobox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698