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 "chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h" | 5 #include "chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h" |
6 | 6 |
| 7 #include "base/macros.h" |
7 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
8 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
9 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
10 #include "chrome/app/chrome_command_ids.h" | 11 #include "chrome/app/chrome_command_ids.h" |
11 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 12 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
12 #include "chrome/browser/platform_util.h" | 13 #include "chrome/browser/platform_util.h" |
13 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/ui/bookmarks/bookmark_bubble_observer.h" | 15 #include "chrome/browser/ui/bookmarks/bookmark_bubble_observer.h" |
15 #include "chrome/browser/ui/bookmarks/bookmark_editor.h" | 16 #include "chrome/browser/ui/bookmarks/bookmark_editor.h" |
16 #include "chrome/browser/ui/browser_dialogs.h" | 17 #include "chrome/browser/ui/browser_dialogs.h" |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 if (node) { | 383 if (node) { |
383 const base::string16 new_title = title_tf_->text(); | 384 const base::string16 new_title = title_tf_->text(); |
384 if (new_title != node->GetTitle()) { | 385 if (new_title != node->GetTitle()) { |
385 model->SetTitle(node, new_title); | 386 model->SetTitle(node, new_title); |
386 content::RecordAction( | 387 content::RecordAction( |
387 UserMetricsAction("BookmarkBubble_ChangeTitleInBubble")); | 388 UserMetricsAction("BookmarkBubble_ChangeTitleInBubble")); |
388 } | 389 } |
389 parent_model_.MaybeChangeParent(node, parent_combobox_->selected_index()); | 390 parent_model_.MaybeChangeParent(node, parent_combobox_->selected_index()); |
390 } | 391 } |
391 } | 392 } |
OLD | NEW |