| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/views/bookmark_bubble_view.h" | 5 #include "chrome/browser/views/bookmark_bubble_view.h" |
| 6 | 6 |
| 7 #include "chrome/app/chrome_dll_resource.h" | 7 #include "chrome/app/chrome_dll_resource.h" |
| 8 #include "chrome/app/theme/theme_resources.h" | 8 #include "chrome/app/theme/theme_resources.h" |
| 9 #include "chrome/browser/bookmark_bar_model.h" | 9 #include "chrome/browser/bookmarks/bookmark_bar_model.h" |
| 10 #include "chrome/browser/profile.h" | 10 #include "chrome/browser/profile.h" |
| 11 #include "chrome/browser/standard_layout.h" | 11 #include "chrome/browser/standard_layout.h" |
| 12 #include "chrome/browser/user_metrics.h" | 12 #include "chrome/browser/user_metrics.h" |
| 13 #include "chrome/browser/views/bookmark_editor_view.h" | 13 #include "chrome/browser/views/bookmark_editor_view.h" |
| 14 #include "chrome/browser/views/info_bubble.h" | 14 #include "chrome/browser/views/info_bubble.h" |
| 15 #include "chrome/common/gfx/chrome_canvas.h" | 15 #include "chrome/common/gfx/chrome_canvas.h" |
| 16 #include "chrome/common/l10n_util.h" | 16 #include "chrome/common/l10n_util.h" |
| 17 #include "chrome/common/notification_service.h" | 17 #include "chrome/common/notification_service.h" |
| 18 #include "chrome/common/resource_bundle.h" | 18 #include "chrome/common/resource_bundle.h" |
| 19 #include "chrome/views/button.h" | 19 #include "chrome/views/button.h" |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 BookmarkBarNode* node = model->GetNodeByURL(url_); | 356 BookmarkBarNode* node = model->GetNodeByURL(url_); |
| 357 if (node) { | 357 if (node) { |
| 358 const std::wstring new_title = title_tf_->GetText(); | 358 const std::wstring new_title = title_tf_->GetText(); |
| 359 if (new_title != node->GetTitle()) { | 359 if (new_title != node->GetTitle()) { |
| 360 model->SetTitle(node, new_title); | 360 model->SetTitle(node, new_title); |
| 361 UserMetrics::RecordAction(L"BookmarkBubble_ChangeTitleInBubble", | 361 UserMetrics::RecordAction(L"BookmarkBubble_ChangeTitleInBubble", |
| 362 profile_); | 362 profile_); |
| 363 } | 363 } |
| 364 } | 364 } |
| 365 } | 365 } |
| OLD | NEW |