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

Unified Diff: chrome/browser/sessions/session_id.cc

Issue 480883002: Move session_id.{cc,h} from chrome/browser/sessions to components/sessions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « chrome/browser/sessions/session_id.h ('k') | chrome/browser/sessions/session_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/session_id.cc
diff --git a/chrome/browser/sessions/session_id.cc b/chrome/browser/sessions/session_id.cc
deleted file mode 100644
index 5d3c07572a87baa0f4303f8996a0e3ce0629f6d1..0000000000000000000000000000000000000000
--- a/chrome/browser/sessions/session_id.cc
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/sessions/session_id.h"
-
-#include "chrome/browser/sessions/session_tab_helper.h"
-
-static SessionID::id_type next_id = 1;
-
-SessionID::SessionID() {
- id_ = next_id++;
-}
-
-SessionID::id_type SessionID::IdForTab(const content::WebContents* tab) {
- const SessionTabHelper* session_tab_helper =
- tab ? SessionTabHelper::FromWebContents(tab) : NULL;
- return session_tab_helper ? session_tab_helper->session_id().id() : -1;
-}
-
-SessionID::id_type SessionID::IdForWindowContainingTab(
- const content::WebContents* tab) {
- const SessionTabHelper* session_tab_helper =
- tab ? SessionTabHelper::FromWebContents(tab) : NULL;
- return session_tab_helper ? session_tab_helper->window_id().id() : -1;
-}
« no previous file with comments | « chrome/browser/sessions/session_id.h ('k') | chrome/browser/sessions/session_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698