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

Side by Side Diff: chrome/browser/back_forward_menu_model.cc

Issue 109043: Move l10n_util to app/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #include "chrome/browser/back_forward_menu_model.h" 7 #include "chrome/browser/back_forward_menu_model.h"
8 8
9 #include "app/l10n_util.h"
9 #include "chrome/browser/browser.h" 10 #include "chrome/browser/browser.h"
10 #include "chrome/browser/metrics/user_metrics.h" 11 #include "chrome/browser/metrics/user_metrics.h"
11 #include "chrome/browser/tab_contents/navigation_controller.h" 12 #include "chrome/browser/tab_contents/navigation_controller.h"
12 #include "chrome/browser/tab_contents/navigation_entry.h" 13 #include "chrome/browser/tab_contents/navigation_entry.h"
13 #include "chrome/browser/tab_contents/tab_contents.h" 14 #include "chrome/browser/tab_contents/tab_contents.h"
14 #include "chrome/common/l10n_util.h"
15 #include "chrome/common/url_constants.h" 15 #include "chrome/common/url_constants.h"
16 #include "grit/generated_resources.h" 16 #include "grit/generated_resources.h"
17 #include "net/base/registry_controlled_domain.h" 17 #include "net/base/registry_controlled_domain.h"
18 18
19 const int BackForwardMenuModel::kMaxHistoryItems = 12; 19 const int BackForwardMenuModel::kMaxHistoryItems = 12;
20 const int BackForwardMenuModel::kMaxChapterStops = 5; 20 const int BackForwardMenuModel::kMaxChapterStops = 5;
21 21
22 int BackForwardMenuModel::GetHistoryItemCount() const { 22 int BackForwardMenuModel::GetHistoryItemCount() const {
23 TabContents* contents = GetTabContents(); 23 TabContents* contents = GetTabContents();
24 int items = 0; 24 int items = 0;
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 std::wstring metric_string; 284 std::wstring metric_string;
285 if (model_type_ == FORWARD_MENU_DELEGATE) 285 if (model_type_ == FORWARD_MENU_DELEGATE)
286 metric_string += L"ForwardMenu_"; 286 metric_string += L"ForwardMenu_";
287 else 287 else
288 metric_string += L"BackMenu_"; 288 metric_string += L"BackMenu_";
289 metric_string += action; 289 metric_string += action;
290 if (index != -1) 290 if (index != -1)
291 metric_string += IntToWString(index); 291 metric_string += IntToWString(index);
292 return metric_string; 292 return metric_string;
293 } 293 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/search_provider.cc ('k') | chrome/browser/bookmarks/bookmark_codec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698